omnivibe Posted January 5, 2015 Share Posted January 5, 2015 Is there a level of integration between the two so that I can detect gestures on a specific Sprite? Quote Link to comment Share on other sites More sharing options...
agamemnus Posted January 5, 2015 Share Posted January 5, 2015 Nope...I think you can detect various basic events though. Alternatively, you can use the canvas Path object... or just rectangular bounds... Quote Link to comment Share on other sites More sharing options...
omnivibe Posted January 7, 2015 Author Share Posted January 7, 2015 Hmmm.. does PIXI support a sort of hitTestPoint (not bounding box, but taking into account alpha) so I can see if the first touch at least hits a sprite? Quote Link to comment Share on other sites More sharing options...
agamemnus Posted January 8, 2015 Share Posted January 8, 2015 You can test the point value if it is a 2d canvas object... getImageData()... not 100% sure about the 3d case... you should probably be using 1x1 px Path2D objects if you can. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.