class

CP::Constraint::RatchetJoint

Inherits CP::Constraint / Reference / Object

Works like a socket wrench.

Constructors

new(a : Body, b : Body, phase : Number, ratchet : Number)

ratchet is the distance between "clicks", phase is the initial offset to use when deciding where the ratchet angles are.

Source

Instance methods

angle

The angle of the current ratchet tooth.

Source
angle=(angle : Number)
Source
phase

The phase offset of the ratchet.

Source
phase=(phase : Number)
Source
ratchet

The angular distance of each ratchet.

Source
ratchet=(ratchet : Number)
Source