- Home /
Move 3+ rigidbody2D's together when only adding force to one
What i am trying to accomplish is a jet effect, where the are say 3 objects all with ridgidbody2d's on them 2 are jets and the center is the body, and parent of the 2 jets.
What i would like would be able to do is to add force to one of the jets and have it rotate all 3 of the rigidbodys.
I can almost get this effect with the distance joint 2d but they spin around the center location instead of being fixed in one location.
I would go about this another way but i need to use rigidbodys for a "center of mass" effect
Think of this as a platform with jets in a side scroller
Answer by togie · May 04, 2015 at 10:35 AM
I was able to attach a slider joint with limits both set to 0 on the jets and anchor them to the parent. If there is another way please fill me in!
Answer by JoelSeidel · Apr 30, 2015 at 07:00 PM
Make the center the parent in the hierarchy. The other elements will stay at the same orientation to it.
not if all three are rigidbodys and you attempt to add force to a child. only the child will move.
Answer by Klinton · Apr 30, 2015 at 11:49 PM
Do you want to spin your "joint model" with center in "Parent"? Like spinning in place?
Try to add force to Jet#2 with value "-20". OR lock position of "Parent" and allow only rotation...