- Home /
[SIMPLE] Not loose speed when destroying colliding object
Hello!
I have a simple question about collision with ridigbodies.
I want my player to collect a gold coin when they collide into it. I've got this working but there's a small problem. Every time the player collides and destroys the coin they bounce of the coin right before it disappears.
Is there anyway to solve this?
Comment
Best Answer
Answer by robertbu · Feb 07, 2014 at 10:48 PM
Mark the collider on the coin as a a trigger and use OnTriggerEnter() rather than OnCollisionEnter().