ODe - play sound when an objetc collide

Blitz3D Forums/Blitz3D Userlibs/ODe - play sound when an objetc collide

Santiworld(Posted 2008) [#1]
hi, i want to play a sound, when an object collided...

im using ode, i supposed there must be a variable that returns a value for each collide, and i can use that variable to play the sound, and set the volume of sound depending on the force of collition..

does this variable exist?

i hope i made myself clear, sorry for my english :)


VIP3R(Posted 2008) [#2]
Look at the following demos...

CarDemo-CCount
CarDemo-DetailedC
Demo-CollisionForces


The first two demos show how to get collision information and the last demo shows one way to get an indication of collision force. The collision force in the demo is detected by attaching another body to the center of an object with a fixed joint, then measuring the amount of separation between them during an impact with Joint Feedback.

Also, have a read through some of the recent JV-ODE Physics threads as there is more info about collision detection and collision forces in those too.


Santiworld(Posted 2008) [#3]
thanks vip3r!... :)