Question by
Smaery · Dec 16, 2016 at 01:45 PM ·
triggersdestroy object
How do I make trigger destroy an object,with the collision from the player
I'm trying to make a game where the player flys through a ring and the ring disappears. I went many tutorials on you tube and even the unity website for answers and no luck. I made a ring out of spheres and parented them together and made an empty game object spin the object around. I tried made to make the rings look like pilot wings for snes ,but just can't figure this out. I need help badly!
Comment
Answer by arthymon · Dec 17, 2016 at 07:27 AM
If i understood you correctly try this, create a new script , and add it to your ring :
void OnCollisionEnter(Collision collsion){
if(collision.tag == "Player")
Destroy(gameObject);
}