Wavertron Posted August 18, 2014 Share Posted August 18, 2014 (Apologies I'm sure this has been asked before, but I cant seem to find it) P2 physics. I'm using the onBeginContact method for checking when my object impacts another.I want to play a sound when they contact, but only if its of reasonable force.For very slow/minor impacts I don't want a sound to play. Is it possible to get the force of the impact from P2, perhaps via the contactEquation?I'm playing around with checking velocities, but its a bit of a hack. Link to comment Share on other sites More sharing options...
lewster32 Posted August 18, 2014 Share Posted August 18, 2014 I believe this is the post you've been looking for: http://www.html5gamedevs.com/topic/8498-p2-contact-impulse/ Link to comment Share on other sites More sharing options...
Recommended Posts