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).
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).
centerOfMassis a shared vector the world overwrites on every visit — read it or copy it inside the callback, never retain it (§7b).