- Home /
Best way to handle a Rigidbody with children -> applying force
Hey. I'm making a spaceship kind of game, and am using Rigidbody2d for the first time. What I have is a Ship object, which is basically an empty gameobject with rigid body 2d, and then a number of ship parts which are children of this Ship object. Each time a new ship part gets added as a child, I manually increase the ship's rigidbody mass. I'm not sure if this is the best way to go as I don't think it's taking into account the position of each ship part when force is being applied to the Ship object. I'm testing out thrusters at the moment, and if the thruster is placed to the side (to simulate turning), it just spirals out of control.
What do you think is a good way to handle each ship part, so that it contributes to how the Ship object (which currently has no collider) handles the force applied to it from the Thruster?
Cheers
Your answer
Follow this Question
Related Questions
Rotating the parent makes the whole object move 1 Answer
Can't refer to a child (with a different tag) when the parent has a rigidbody 2d 1 Answer
Rigidbody2D Force Problem 1 Answer
Use Rigidbody2D's Drag to slow down flying character 1 Answer
How can I make an object cannot be moved by another object? 0 Answers