object.isLimitEnabled

Type Boolean
Object Joint
Library physics.*
Revision 2017.3122
Keywords joint, isLimitEnabled
See also object:setRotationLimits()
object:setLimits()
Physics Joints (guide)

Overview

Set this to true to constrain the limits of rotation for a "pivot" joint or the limits of motion for a "piston" joint.

Examples

pivotJoint.isLimitEnabled = true
pivotJoint:setRotationLimits( -10, 10 )
pistonJoint.isLimitEnabled = true
pistonJoint:setLimits( -40, 120 )