Skip to main content
Renders MuJoCo flex (deformable) bodies. Currently renders as a point cloud since triangle face data is not yet available in the JS bindings.

Usage

Props

FlexRenderer takes no props.

How It Works

  1. Creates a BufferGeometry per flex body
  2. Updates vertex positions from data.flexvert_xpos every frame
  3. 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.

Notes

  • If the model has no flex bodies, this component renders nothing
  • Point size and color use sensible defaults