suppose, a rotating part is placed on a multiple piston that control it's orientation. like- left- up, bottom down, sll sides up or down.
Create multiple joints for all control and assign multiple driven commands for each joints.For example in a mechanism for rotating part use angle driven and for slides use lenght driven together.