Returns refs tracking a MuJoCo site’s world position and orientation. Useful for tracking end-effectors, sensors, or reference frames.Documentation Index
Fetch the complete documentation index at: https://dadd.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Signature
Usage
Visual Marker at Site
Return Value
| Field | Type | Description |
|---|---|---|
position | RefObject<THREE.Vector3> | World position from data.site_xpos |
quaternion | RefObject<THREE.Quaternion> | World orientation from data.site_xmat (converted to quaternion) |
Notes
- Updated every frame via
useAfterPhysicsStep - Returns refs, not state — no re-renders
- The site must exist in the MuJoCo model