API Docs for: 0.6.1
Show:

Constraint Class

Constraint base class

Constructor

Constraint

(
  • bodyA
  • bodyB
  • [options]
)

Parameters:

  • bodyA Body
  • bodyB Body
  • [options] Object optional
    • [collideConnected=true] Boolean optional
    • [wakeUpBodies=true] Boolean optional

Item Index

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