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
-- The first constrained body. Nil after the constraint is destroyed.
const firstBody: Body3D | nil
-- The second constrained body. Nil after the constraint is destroyed.
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)