Jump to content

hitTest in V3


Alex_Matveev
 Share

Recommended Posts

  • 3 months later...
  • 1 year later...
6 hours ago, PixelPicoSean said:

I think you've misunderstand the "containsPoint" method, which is actually a callback for you to manually check whether the input (either mouse or touch) is inside a Container/Sprite.

Try contains method of PIXI shape objects if you want to test whether a point is inside.

Thanks. Now I have a clearer idea of the containsPoint method. I have also tried `getBounds` method to get the shape and check if the point is contained in the shape, and I also have problem with that, which is asked here. I switched to containsPoint because the moderator of this forum suggest I use it.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...