ODe - play sound when an objetc collide
Blitz3D Forums/Blitz3D Userlibs/ODe - play sound when an objetc collide
| ||
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 :) |
| ||
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. |
| ||
thanks vip3r!... :) |