object:getLimits()

Type Function
Object Joint
Library physics.*
Return value Numbers
Revision Current Public Release (2017.3068)
Keywords joint, getLimits
See also object:setLimits()
object.isLimitEnabled
Physics Joints (guide)

Overview

This function returns the current negative and positive motion limits for a "piston" joint.

Syntax

joint:getLimits()

Example

myJoint.isLimitEnabled = true 
myJoint:setLimits( 100, 200 )

local negLimit, posLimit = myJoint:getLimits()
print( negLimit, posLimit )