I have a structure made up of welded bodies.
I apply impulses/forces to move the structure around but I notice that the structure isn't moving perfectly straight. It begins moving in the direction of the Vector and then slowly turns, eventually going around in a circle.
The problem is addressed Here
It appears the problem is that the force needs to be applied to the center of mass. However, I am unsure how to get the center of mass from a structure that is welded together.
I have the center of mass of each body in the structure, but they are all at the center. Is there a way to compute the center of mass for a complex, welded structure?