API Docs for: 0.6.1
Show:

HingeConstraint Class

Hinge constraint. Tries to keep the local body axes equal.

Constructor

HingeConstraint

(
  • bodyA
  • bodyB
  • [options]
)

Parameters:

  • bodyA RigidBody
  • bodyB RigidBody
  • [options] Object optional
    • [pivotA] Vec3 optional

      A point defined locally in bodyA. This defines the offset of axisA.

    • [axisA] Vec3 optional

      an axis that bodyA can rotate around.

    • [pivotB] Vec3 optional
    • [axisB] Vec3 optional
    • [maxForce=1e6] Number optional

Methods

disableMotor

()

enableMotor

()

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