I am trying to create a space capsule that has four rockets to balance the capsule.
The rockets and capsule have
BoxCollider2D components attached. The rockets have a script that calls
rbody.AddForce() when the relevant key is pressed. Rockets are child objects of the capsule object.
But it is not working because rockets are separating when the capsule is rotating.
I added joints to connect the capsule and rockets, but this time the capsule stopped rotating.
I've tried to use all joint types, but I could not find a suitable joint. The objects are 2D. I guess that a script can be coded that changes the rotation of the capsule and its position based on calculations, but if it is possible, I want to not calculate this manually.
How can I create a game object that is used for adding force, and combine these objects with another object?