Usage
Props
TendonRenderer takes no props. Tendons are rendered with default styling.
How It Works
- On model load, creates one
Meshper tendon with a sharedMeshStandardMaterialand initialTubeGeometry - Each frame, updates the
CatmullRomCurve3control points fromdata.wrap_xpos - Rebuilds only the
TubeGeometryfrom the updated curve — the material and mesh objects are reused - Tendons with fewer than 2 valid wrap points are hidden automatically
Defaults
Notes
- Requires tendons defined in the MJCF model
ten_rgbaandten_widthmay not be available in the active MuJoCo WASM binding — defaults are used instead- If the model has no tendons, this component renders nothing
- Meshes and material are created once and reused — only geometry is rebuilt per frame