API Docs for: 0.6.1
Show:

DistanceConstraint Class

Constrains two bodies to be at a constant distance from each other.

Constructor

DistanceConstraint

(
  • bodyA
  • bodyB
  • distance
  • maxForce
)

Parameters:

  • bodyA Body
  • bodyB Body
  • distance Number
  • maxForce Number

Item Index

Methods

Methods

update

()

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