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
| Property | Value |
|---|---|
| Color | rgb(0.3, 0.3, 0.8) |
| Tube radius | 0.002 |
| Radial segments | 6 |
Notes
- Requires tendons defined in the MJCF model
ten_rgbaandten_widthare not available in mujoco-js 0.0.7 — 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