- Home /
Split a object and make another one appears
Hi there. I'm new to Unity and I have a rocket that is like this:
And looks like this:
I made it launch and land through Rigidbody. However, I need to separate the gray area from the red one and make the parachute appear (by default, the Mesh Renderer of the parachute is disabled).
How can I make this happen? Any tips? Thanks.
Bem-vindo ao Unity Answers Athorbr. You can use the GameObject.child to split the meshes in the hierarchy, use the Child to access the objects that is in the FogeteArt.prefab and the Parent to access the higher level like: acessing FogeteArt.prefab from Corpo_Nariz. Good luck!
Answer by Commander5518 · Feb 21, 2014 at 03:36 PM
You can do this pretty easily. Unparent the grey part and set them as a rigidbody with every movement and rotation axis frozen. Then just do...
parachute.renderer.enabled = true;
it works but the parachute goes to one place and the rest of the rocket goes to another place. i need them to be together. what can I do?
you have to parent the parachute with the rest of the rocket.
Your answer
![](https://koobas.hobune.stream/wayback/20220613134233im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Rocket-styled angular drag 0 Answers
Mesh renderer does not move with parent rigid body 5 Answers
AddExplosionForce won't have any effect. 1 Answer
How to disable constant force over time? Rocket game 2 Answers
combining meshes 0 Answers