API Docs for: 0.6.1
Show:

ConeTwistConstraint Class

Constructor

ConeTwistConstraint

(
  • bodyA
  • bodyB
  • [options]
)

Parameters:

  • bodyA Body
  • bodyB Body
  • [options] Object optional
    • [pivotA] Vec3 optional
    • [pivotB] Vec3 optional
    • [axisA] Vec3 optional
    • [axisB] Vec3 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.