Skip to main content
Returns refs tracking a body’s position, quaternion, linear velocity, and angular velocity. Updated every physics frame without triggering re-renders.

Signature

Usage

Velocity Tracking

Return Value

Notes

  • Returns are refs, not state — read .current in useFrame or event handlers
  • No re-renders on updates — this is intentional for 60fps performance
  • The body is looked up by name once; if the name doesn’t exist, values stay at zero
  • cvel layout is [angular(3), linear(3)] per body — the hook reorders for you