Builtin Library
README.md
phys.lockRotation
Lock an entity's rigid body against rotating around chosen axes. Each axis flag is independent, so locking X and Z lets the body spin only around Y. Useful for top-down characters, hinged doors, and constrained vehicles. Returns the entity ID.