- Home /
Rigidbody.velocity Not working on parent rigidbody with four child rigidbodies attached to it
As the question states, I am trying to move a rigidbody 2d (an empty gameobject) that is holding four 2d gameobjects with rigidbody attahed to them. I am trying the move the parent rigidbody object using the rb.velocity but it is not moving the gameobject however the position values in the inspector are changin. When I am trying to move the parent gameobject after removing the child gameobjects, it is working and the same is working for the child gameobjects too.. What possibly could be the issue. In the unity documentation(https://docs.unity3d.com/Manual/class-Rigidbody.html) it is clearly mentioned that a parent object will move alongwith the child gameobjects.
Answer by JVene · Jul 07, 2018 at 04:28 PM
Start with this thought: There should be only 1 Rigidbody, and it will govern the child objects.
If you have reason to attach a Rigidbody TO a Rigidbody, you must do so through a joint (even a fixed joint).
Your answer
Follow this Question
Related Questions
Slow a rigidbody to a stop over a set distance? 1 Answer
Why does Rigidbody.OnDisable() reset the velocity? 1 Answer
Unity limiting max velocity on Rigidbody? 5 Answers
How would I detect my players velocity when it collides with something? 3 Answers
Do rigidbodies (especially 2d) have limits on their velocities? 1 Answer