dondochaka Posted October 14, 2014 Report Share Posted October 14, 2014 I'm trying to have a projectile disappear as soon as it collides with anything else. The first step I'm taking is to use setTileIndexCallback to listen for collisions with the map. Unfortunately, it never fires. Is there an example of it working with P2 physics? Quote Link to comment Share on other sites More sharing options...
mungur Posted October 26, 2014 Report Share Posted October 26, 2014 I have the same question. The only one example is with Arcade physics.. Quote Link to comment Share on other sites More sharing options...
mungur Posted October 26, 2014 Report Share Posted October 26, 2014 You could go the other way and check if non-tile object is colliding with the tile.Collision events - http://www.html5gamedevs.com/topic/5335-onbegincontact-how-to-get-both-bodies/ 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.