Novice programmer and explorer of simple 2D physics, here.
I have a simple 2D object made up of two rigid bodies connected at a fixed joint.
The two rigid objects can rotate freely about that fixed joint, causing the center of mass and moment of inertia of the whole object to change(but not adding extra energy to the system).
If my 2d object is rotating about it's center of mass, and then the center of mass changes (because one of its components rotates), what happens with the torque?
Since my torque was applied at the initial center of mass, and now the center of mass has changed, it would seem that I could not just preserve the torque for the new object orientation?
One possibility in my head is that some of that initial torque will be converted to linear velocity, but I can't visualize this in any consistent way.
So does the torque value remain the same when center of mass changes or does it need to be recalculated?
What key information am I missing here?
If there's a simple enough answer that could be expressed in some python or pseudo code (in terms of what to do with the torque), that would be appreciated.
EDIT:
I'll try to be more clear. There's no friction there's no gravity, and no ability for either of these objects to collide with anything (they are in vacuum too). The two components themselves are connected at a joint but they are effectively rigid (in the sense that torque force does not cause them to change their orientation to joint). Linear velocity starts at nothing and we apply a one time (impulse?) torque through the center of mass. The whole object rotates in the expected way when all of the sudden one of the components of the object changes its orientation(without adding any additional forces to whole object). This changes the objects center of mass and moment of inertia. Since the only force applied to this object was torque, what happens in such a hypothetical situation? I'm mostly interested in how to apply the existing energy to the new orientation. Does the object gain linear velocity and lose torque? If so how do i calculate that.
(I suppose if I were spinning in outer space and stuck out my arm, that might be along the same line?)