Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LockConstraint

Lock constraint. Will remove all degrees of freedom between the bodies.

Hierarchy

Index

Constructors

constructor

Properties

bodyA

bodyA: Body

Body A.

bodyB

bodyB: Body

Body B.

collideConnected

collideConnected: boolean

Set to false if you don't want the bodies to collide when they are connected.

equations

equations: Equation[]

Equations to be solved in this constraint.

pivotA

pivotA: Vec3

Pivot, defined locally in bodyA.

pivotB

pivotB: Vec3

Pivot, defined locally in bodyB.

Methods

disable

  • disable(): void

enable

  • enable(): void

update

  • update(): void