[ODE] Time of contact

Jon Watte (ODE) hplus-ode at mindcontrol.org
Tue Aug 29 16:03:30 MST 2006

Matthias Weigand wrote:
> Next thought was to play a sound, if the box slides on the other. How to 
> determine friction loss?

Use implicit methods. Get the point velocity of the contact point for 
each of the bodies, and subtract one from the other; this gives you 
relative velocity at the point of contact.

For the question of playing an impact sound, remember which geoms the 
body has collided with in, say, the last 10 steps, and only play a sound 
if the contact is "new".

The raycar demo, btw, actually does these kinds of sounds: tire squeal 
when sliding, scraping when scraping against a wall, and a crash (that's 
not that great a sound) when hitting something head on.



          / h+

More information about the ODE mailing list