API

Function getPhysicsConstraints

  • Constraints created in this world and not released, in creation order. Live readonly array; copy for a snapshot. Empty after disposePhysics. Removing a body does not delist its constraints: hide visuals if either body is unlisted. Thin bodies bind instance 0 only; constraints spanning floating-origin regions are unsupported.

    Parameters

    Returns readonly PhysicsConstraint[]