Run your first spatial experiment
Turn a saved World into a task, run it in the editor, and open the recording to see what happened.
Need your own rules? Create a task from World and playtest its actions.
World, task and recording
- World
- The scene you author with entities, materials, lights and cameras.
- Task
- The agent, target, physics settings and success or failure conditions captured for an experiment.
- Seed
- The initial random input for a run. Use the same seed when comparing behavior under the same conditions.
- Recording
- The saved initial state, actions and outcomes. A vision recording also stores camera evidence at model decision points.
Run the starter task
- In Project Hub, choose New Project → Spatial.
- Open Experiments. If a task is missing, use Task → Open Task and choose
Tasks/ReachTarget.spatial.json. - Choose Reference PD, keep seed
42, and press Run. This built-in controller drives the agent toward the goal without a model. - Open the recording with Play Recording in Runs. Scrub the timeline to see the trajectory. The results list outcome, simulation ticks and reward.
What the view shows. Physics Preview and Physics Replay show colliders and target position. A World sensor camera uses the saved scene and can render its meshes, materials and lights. Model Camera in vision replay shows the archived input to a model decision.

Choose a controller
- Reference PD
- A built-in physics controller. Use it to check whether the agent can move and reach the goal.
- Project Policy
- Your project's Python controller in
Source/Agents/policy.py. Edit it in Source or your code editor. - Local Llama
- A local text controller. Choose its server and text GGUF in Task → Local Llama Settings.
- Vision model
- Receives a rendered observation and an instruction. Use Task → Run Vision Model.
Run a vision model
- Set up a saved World task with a perspective camera. Use an episode limit between 61 and 720 ticks.
- Choose Task → Run Vision Model. Select Sensor camera and enter a task instruction, such as
Move the red cargo to the green target without touching the blue barrier.
- Choose Local GGUF for a vision model and matching
mmproj, with a compatiblellama-server. Choose Model API for a provider or compatible Chat Completions endpoint, then enter the model ID and token as required. - Click Run Model. In Replay, inspect Model Camera and the action at the selected decision. The simulator computes the outcome from the task rules.
Model API runs send the instruction and camera images to the selected provider. Local model runs keep these inputs on the Mac.

Inspect a run or fix setup
For a failed custom-task run, inspect the recorded camera input and test an alternate action. For package or model connectivity issues, run Spatial Doctor.
- Run Vision Model is unavailable
- Save the World, stop Play mode, and create a new task from the saved scene with an enabled perspective camera.
- An entity is missing from the Agent picker
- Check the Rigidbody and the enabled box collider in World. The goal marker is selected in its own picker.
- The agent falls through the scene
- Check the floor collider and placement. The preview grid provides a visual reference.
- Two runs produce different actions
- Use Compare → Compare Vision Runs with a common task, camera, instruction and seed. Open the first differing decision in replay.
For independent runs, report files and engine regression checks, see Spatial Bench workflows.
