- Home /
Falling Objects Sound
I'm trying to make some wooden crates make a crashing sound when they colide with both the floor and or terrain and with each other, so I guess I might need three different sounds but how do I script this?
Answer by nowhereman · Feb 08, 2011 at 10:45 PM
Just to get you started... http://unity3d.com/support/documentation/ScriptReference/AudioSource.html audio.Play();
Then you'll be using some sort of collision detection in your script http://unity3d.com/support/documentation/ScriptReference/Collision.html
It's understanding the script I think I'm having problems with, I had them make sound when the crates crashed into each other but I'm not understanding how to make them do that when they hit the ground or terrain if you like?
Your answer
Follow this Question
Related Questions
Dice roll collision sound 1 Answer
Unity3D Playing Two Sounds - OnCollision 1 Answer
Rigidbody collision 3 Answers