Skip to main content

Constraint3D

Description:

  A two-body constraint owned by a PhysicsWorld3D.

world

Type: Readonly Field.

Description:

  The owning world. Nil after the constraint is destroyed.

Signature:

const world: PhysicsWorld3D | nil

firstBody

Type: Readonly Field.

Description:

  The first constrained body. Nil after the constraint is destroyed.

Signature:

const firstBody: Body3D | nil

secondBody

Type: Readonly Field.

Description:

  The second constrained body. Nil after the constraint is destroyed.

Signature:

const secondBody: Body3D | nil

destroy

Type: Function.

Description:

  Removes the constraint from its world and turns this into an empty object.

Signature:

destroy: function(self: Constraint3D)