I used fixed joint 2d to connect various parts of my spaceship together. whenever a part is hit, the whole ship will be pushed to the opposite direction. And ship components could be added or destroyed individually.
However the fixed joint 2d doesn’t fix the relative position and angles for 2 rigidbodies, it seems to work like spring, dangling around. in some situations, it will create a total mess. any idea what I’m doing wrong or how should I get around it? thanks in advance
issue demonstrated in the following gif: I started the thruster on the right, pushing the thruster to the left, (expect to bring all the ship left) results in a mess
my code for adding fixed joint 2d