Locking object rotation to specific axis

Hello all,

I’m currently working on a door and i’d like to draft in the concealed hinges.

The STEP file I pulled from mcmaster is set in the open position and i’d like to collapse the hinges so they can be drafted with the door closed in its jamb.

How would I go about rotating the hinge parts around their hinge access
Any suggestions?

Screenshot attached

This is done in Kangaroo with rigid body goals. Sorry but I cannot share the definition.

Is it a blocked object? I usually perform explode block and purge everything, so that they are pickable polysurfaces…I can rotate selected pieces.

Maybe there is better way?

I’ve ungrouped this objects but there are multiple axis’ of rotation i’d like the individual objects to rotate around.

Essential constricting its movement to the axis’ of rotation is uses mechanically