API Docs for: 0.6.1
Show:

LockConstraint Class

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

Constructor

LockConstraint

(
  • bodyA
  • bodyB
  • [options]
)

Parameters:

  • bodyA Body
  • bodyB Body
  • [options] Object optional
    • [maxForce=1e6] Number optional

Methods

disable

()

Disables all equations in the constraint.

enable

()

Enables all equations in the constraint.

update

()

Update all the equations with data.

Properties

collideConnected

Boolean

Set to true if you want the bodies to collide when they are connected.

equations

Array

Equations to be solved in this constraint

id

Number

pivotA

Vec3

Pivot, defined locally in bodyA.

pivotB

Vec3

Pivot, defined locally in bodyB.