- Home /
 
 
               Question by 
               DayyanSisson · Aug 23, 2011 at 02:59 AM · 
                parentchildmoveexplosion  
              
 
              Make Explosion Child of Target
I'm making a space sim. Right now, whenever a large ship moves, and gets hit by an explosion, the explosion stays where it is, and the burning after affects stay where the explosion. I need a way to make the explosion a child of the object it collided with, and keep it's position. How should I do that?
               Comment
              
 
               
              Answer by SilverTabby · Aug 23, 2011 at 04:25 AM
Using the transform.parent property.
 explosion.transform.parent = target.parent;
 
              Your answer
 
             Follow this Question
Related Questions
Make a simple tree 1 Answer
How Can I move child object just in z axis cordinates? 2 Answers
Becoming parent after OnTriggerStay/Enter? 1 Answer