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

19.10.4 Groove Joint

joint = physics.GrooveJoint(a, b, grooveA, grooveB, anchr2)

Parameter

Type

Description

a

in physics.Body

First Body

b

in physics.Body

Second Body

grooveA

in physics.Vect

One end point of the groove

grooveB

in physics.Vect

The other end point of the groove

anchr2

in physics.Vect

The pivot point of Body b

joint

out physics.GrooveJoint

New GrooveJoint

The groove goes from grooveA to grooveB on Body a, and the pivot is attached to anchr2 on
Body b. All coordinates are body local.

Accessors

Type

setAnchr2, anchr2

physics.Vect

setGrooveA, grooveA

physics.Vect

setGrooveB, grooveB

physics.Vect

grooveN

physics.Vect

Introduced in platform.apiLevel = '2.0'