Category: 2D Game Physics (Pro)
SetBodyRotationLocked(body As Integer, locked As Boolean)
Void
Controls whether a body may rotate during simulation.
Locking clears angular velocity and prevents contact impulses from adding spin. The current angle is preserved.
Pro feature: requires GamePhysics.
SetBodyRotationLocked player, True