object.isMotorEnabled

Type Boolean
Object Joint
Library physics.*
Revision Release 2024.3703
Keywords joint, isMotorEnabled
See also object.motorSpeed
Physics Joints (guide)

Overview

Boolean value which indicates whether a "pivot" or "piston" joint is motor-enabled or not. Motor action for a "pivot" joint is rotational, while motor action for a "piston" joint is linear along the defined axis.

Example

if ( myJoint.isMotorEnabled ) then
    myJoint.motorSpeed = 100
end