[ODE] Easy Newbie Question
Roel van Dijk
roelvandijk at home.nl
Fri Jan 30 01:16:14 MST 2004
On Wednesday 28 January 2004 23:38, coberr at scottsdaleins.com wrote:
> The problem is that the sound is being played much too frequently -
> obviously many contact points are created within any given small timeframe.
You could determine the force of the collision, and only play a sound if the
force is above a certain treshold. This avoids playing sounds when there are
only little collisions. You could even use the force to set the volume of the
sound and other properties.
> The solution I am considering is to only play a sound if there is a
> collision AND a certain amount of time has elapsed.
That sounds like a good solution.
More information about the ODE
mailing list