Hi guys, It´s me again
Again some problems occured. I have 2 Spheres. When they collide, a sound should be triggered. Something like that
#pragma strict
var flush:AudioClip;
function OnTriggerEnter(Collider: Collider)
{
audio.PlayOneShot(flush);
}
The Spheres have its own collider and rigidbody. When I put the one Shpere over the other and press play, the sound appears properly. The problem is, that I have to set them to “Is trigger” and at this point, the Sphere falls under the map.
I fixed the problem with adding a second collider, but are their other ways to fix this problem ?
I don´t know what I should do