Class LockConstraint

Lock constraint. Will remove all degrees of freedom between the bodies.

Hierarchy (view full)

Constructors

Properties

bodyA: Body

Body A.

bodyB: Body

Body B.

collideConnected: boolean

Set to false if you don't want the bodies to collide when they are connected.

equationX: ContactEquation
equationY: ContactEquation
equationZ: ContactEquation
equations: Equation[]

Equations to be solved in this constraint.

id: number
motorEquation?: RotationalMotorEquation
pivotA: Vec3

Pivot, defined locally in bodyA.

pivotB: Vec3

Pivot, defined locally in bodyB.

rotationalEquation1: RotationalEquation
rotationalEquation2: RotationalEquation
rotationalEquation3: RotationalEquation
xA: Vec3
xB: Vec3
yA: Vec3
yB: Vec3
zA: Vec3
zB: Vec3
idCounter: number

Methods