Function getPhysicsBodyLinearVelocityToRef
-
getPhysicsBodyLinearVelocityToRef(
world: PhysicsWorld,
body: PhysicsBody,
out: Vec3,
instanceIndex?: number,
): Vec3Parameters
- world: PhysicsWorld
- body: PhysicsBody
- out: Vec3
- instanceIndex: number = 0
Returns Vec3
Read linear velocity (m/s) into out and return it. Requires a live world/body. Region-independent; defaults to instance 0. Out-of-range indices are undefined behavior.