API

Class PhysicsConstraint

This is a holder class for the physics constraint created by the physics plugin It holds a set of functions to control the underlying constraint

Hierarchy (View Summary)

Index
_pluginData: any = undefined

V2 Physics plugin private data for a physics material

  • Disposes the constraint from the physics engine.

    This method is useful for cleaning up the physics engine when a body is no longer needed. Disposing the body will free up resources and prevent memory leaks.

    Returns void