You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > Rotary Limit Joint

19.10.8 Rotary Limit Joint

joint = physics.RotaryLimitJoint(a, b, min, max)

Parameter

Type

Description

a

in physics.Body

First Body

b

in physics.Body

Second Body

min

in number

The minimum angular distance in radians

max

in number

The maximum angular distance in radians

joint

out physics.RotaryLimitJoint

New RotaryLimitJoint

Constrains the relative rotations of two bodies. min and max are the angular limits in radians. It is implemented so that it is possible for the range to be greater than a full revolution.

Accessors

Type

setMin, min

number

setMax, max

number

Introduced in platform.apiLevel = '2.0'