dondochaka Posted October 14, 2014 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? Link to comment Share on other sites More sharing options...
mungur Posted October 26, 2014 Share Posted October 26, 2014 I have the same question. The only one example is with Arcade physics.. Link to comment Share on other sites More sharing options...
mungur Posted October 26, 2014 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/ Link to comment Share on other sites More sharing options...
Recommended Posts