Question by
carter-carl30 · Feb 11, 2016 at 07:30 PM ·
physics2ddestroy object
destroying a physics object after it starts moving?
Hi all, is there a way to destroy a physics object after it starts moving? eg. If I hit a physics object cube it will react to the hit with physics rolling bouncing or whatever then after a delay it will destroy (so it is not left in the scene)
cheers!
Comment
Answer by Ahndrakhul · Feb 11, 2016 at 09:59 PM
You would probably want to attach a script to the object you want to destroy that uses OnCollisionEnter or OnTriggerEnter to call Destroy( gameObject, timeUntilDestroy);
Your answer
Follow this Question
Related Questions
Destroying large CustomCollider2D takes very long time 0 Answers
Respawn not working past 2nd respawn 1 Answer
Problem after 5 seconds destroy/deactivate component 1 Answer
How to destroy the most ancient clone? 0 Answers
Who collided first 0 Answers