To show a machine with parts expanded, collect the current transform values and pass a new transform position and angle to the same object ready for a an event or action. Tip, assign and onClick function to a UI button to toggle the starting position or the expanded position.
Take a look at the example code.
Challenge: How can you change the method to show the original part moving to the expanded position?