maintaining direction with change of centre of rotation

I have a system where an object rotates about its centre of mass however its centre of mass can change.

How do I maintain the direction (ie it doesn’t change its angle of rotation) when I change the centre of mass, most helpful solution would be just involving a change in the angle of rotation.