self:is_lock_rotation_enabled

Client

Checks whether rotation is locked on the rigid body


Syntax

local result = self:is_lock_rotation_enabled()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the condition is met, false otherwise

Examples

Check rotation lock on a rigid body
local entity = physics.rigid.create()

core.engine.print("info", "Rigid body lock rotation enabled:", entity:is_lock_rotation_enabled())

On this page