API Docs for: 0.4.0
Show:

LockConstraint Class

Locks the relative position between two bodies.

Constructor

LockConstraint

(
  • bodyA
  • bodyB
  • [options]
)

Parameters:

  • bodyA Body
  • bodyB Body
  • [options] Object optional
    • [localOffsetB] Array optional

      The offset of bodyB in bodyA's frame.

    • [localAngleB] Number optional

      The angle of bodyB in bodyA's frame.

    • [maxForce] Number optional

Item Index