How to get actor simulating physics to only rotate in z without rotating in x,y or translating in x,y,z

295926-pic.png

I am trying to create a blueprint for a puzzle that requires players to rotate an actor along the z-axis by pushing its arms.

I tried using the constraints in the editor to only have the z rotation unchecked but that ceases movement all together.

I got it to work (sort of) by making the blueprints linear velocity be set to zero every tick and by setting the x and y translation constraints to checked. The problem is when a player some how manages to get under the actor and push upwards my object gets stuck in a new z position. Note that it is simulating physics.

limiting the actors movement to only rotate in the z access seems to be harder than the settings in the editor make it seem. I would really appreciate the help.