Renders MuJoCo flex (deformable) bodies. Currently renders as a point cloud since triangle face data is not yet available in the JS bindings.
FlexRenderer takes no props.
How It Works
- Creates a
BufferGeometry per flex body
- Updates vertex positions from
data.flexvert_xpos every frame
- Renders as a
Points material (point cloud)
Limitations
flex_face (triangle indices) may not be available in the active MuJoCo WASM binding. Flex bodies render as point clouds instead of solid meshes until face data is exposed.
- If the model has no flex bodies, this component renders nothing
- Point size and color use sensible defaults