- Home /
Question by
Ramss · May 27, 2013 at 12:57 PM ·
gameobjectdestroyeffects
How to destroy an object with over a blasting sensation
Hi Everyone, I have an helicopter. For a game I'd like to destroy that object when it collides with anything. It should be blasted first, later on it has to be destroyed. Please tell me a way to get it done. I will have to apply some animation. but only for the blasting , i am asking.
Comment
Answer by Kajos · May 27, 2013 at 01:04 PM
Check collision with OnCollisionEnter(Collision collision) in helicopter rootnode
Enable explosion particles attached to helicopter
Start timing; with Time.deltaTime (add it to a float which is initialized at zero)
At certain time (say > 10.0f) destroy helicopter rootnode