three_live_sim
Simulate Three.js scenes deterministically at 60 Hz, including interaction graphs, rigid-body physics, character controllers, steering agents, hit zones, objectives, and timed actions.
Instructions
Simulate interactive KHR_interactivity behavior graphs, orbit/explode traits, and 60 Hz xr-live-sim rigid-body physics, character controllers, steering agents, hit zones, and objectives deterministically at 60 Hz.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Inline Three.js scene script or HTML document. Provide either `code` or `inputPath`. | |
| actions | No | Optional timed interaction events (e.g. `[{"at": 0.2, "type": "select", "target": "crystal"}]`). | |
| duration | No | Simulation duration in seconds (default 2.0s, max 60.0s). | |
| inputPath | No | Path to a .js, .html, or .glb file on disk when `code` is not provided. | |
| snapshotFrames | No | Optional 60 Hz tick indices (e.g. [0, 30, 60, 120]) to render into a horizontal filmstrip. | |
| outputStripPath | No | Optional file path (.png or .gif) to write the rendered keyframe strip on disk. | |
| includeFilmstrip | No | When true, renders a keyframe filmstrip PNG and includes it as an image content block. |