Documentation
    Preparing search index...

    Type Alias ActiveBodyVisitor

    ActiveBodyVisitor: (body: RigidBody, node: Node, centerOfMass: Vector3) => void

    What PhysicsWorld.forEachActiveBody hands its caller for one body: the component, the node it is attached to, and the body's world-space centre of mass (§25).

    centerOfMass is a shared vector the world overwrites on every visit — read it or copy it inside the callback, never retain it (§7b).

    Type Declaration