19.10.6 Pivot Joint

joint = physics.PivotJoint(a, b, pivot)
joint = physics.PivotJoint(a, b, anchr1, anchr2)

Parameter

Type

Description

a

in physics.Body

First Body

b

in physics.Body

Second Body

pivot

in physics.Vect

Point of pivot between the two Bodies

anchr1

in physics.Vect

The anchor point on Body a

anchr2

in physics.Vect

The anchor point on Body b

joint

out physics.PivotJoint

New PivotJoint

a and b are the two bodies to connect, and pivot is the point in world coordinates of the pivot. Because the pivot location is given in world coordinates, you must have the bodies moved into the correct positions already. Alternatively you can specify the joint based on a pair of anchor points, but make sure you have the bodies in the right place as the joint will fix itself as soon as you start simulating the Space.

Accessors

Type

setAnchr1, anchr1

physics.Vect

setAnchr2, anchr2

physics.Vect

Introduced in platform.apiLevel = '2.0'