You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > Slide Joints

19.10.10 Slide Joints

joint = physics.SlideJoint(a, b, anchr1, anchr2, min, max)

Parameter

Type

Description

a

in physics.Body

First Body

b

in physics.Body

Second Body

anchr1

in physics.Vect

Anchor point to first Body

anchr2

in physics.Vect

Anchor point to second Body

min

in number

Minimum distance between Bodies

max

in number

Maximum distance between Bodies

joint

out physics.SlideJoint

New SlideJoint

a and b are the two bodies to connect, anchr1 and anchr2 are the anchor points on those bodies, and min and max define the allowed distances of the anchor points.

Accessors

Type

setAnchr1, anchr1

physics.Vect

setAnchr2, anchr2

physics.Vect

setMin, min

number

setMax, max

number

Introduced in platform.apiLevel = '2.0'