Function getPhysicsBodyMassPropertiesToRef
-
getPhysicsBodyMassPropertiesToRef(
world: PhysicsWorld,
body: PhysicsBody,
out: Required<PhysicsMassProperties>,
instanceIndex?: number,
): Required<PhysicsMassProperties>Parameters
- world: PhysicsWorld
- body: PhysicsBody
- out: Required<PhysicsMassProperties>
- instanceIndex: number = 0
Returns Required<PhysicsMassProperties>
Read native body-local mass properties into existing caller storage, returning out. Native post-lock inertia is returned (locked axes read zero); partial mass edits preserve locks. Thin-instance reads default to instance 0; out-of-range indices are undefined behavior. No floating-origin offset applies. Requires a live world and body.