How to make an Actor to limit its rotations.

Hi i am currently making a side scroller.

There are movable actors in the side scroller which I don’t want to be rotated.

The best way to do this i think is using PhysicalConstraintActor but don’t want to use it 100 times in the level.

Another solution i thought of was resting the rotation in each tick of the actor. But that didn’t work when a very high amount of force was applied it looks wired.

I wanted to know how does the physicalConstraintActor works and wanted to use the same functionality in a class of my actor. Is it possible?