Jump to content

P2 - checking the force of an impact


Wavertron
 Share

Recommended Posts

(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

 Share

  • Recently Browsing   0 members

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