# Add physics, collision or floors to a world

Docs: 0b1d2d93415421fb; API reference: 0.11. Installed kit/browser compatibility takes precedence.
Canonical: https://iamar.ai/docs/releases/0b1d2d93415421fb/tasks/physics-and-collision.md
Source: https://iamar.ai/docs/releases/0b1d2d93415421fb/sources/pipelines.json; sha256: 8c23f70158b513f5b084046e36f52d0dfc0758b99aaa42bfa587815759d1caf1.
Status: documented.

## Rules

- Physics facts: script entities do have physics. entity_set_physics (mode 0 scripted, 1 dynamic, 2 static; max 128 dynamic bodies per world), entity_apply_impulse (velocity capped at 200 m/s) and entity_set_collider (box, sphere or capsule): https://iamar.ai/docs/api/entity_set_physics.md , https://iamar.ai/docs/api/entity_apply_impulse.md , https://iamar.ai/docs/api/entity_set_collider.md
- Recipes: https://iamar.ai/docs/recipes/collision_proxy.md (the package step adds collision boxes to prop meshes and is ON by default; only IAMAR_PACKAGE_COLLISION_PROXY=0 turns it off, dev builds only), https://iamar.ai/docs/recipes/movement_feel.md , https://iamar.ai/docs/recipes/physics_interp.md

## Inputs

- World folder with its spawns, floors, walls and any script entities that need physics; the approved brief

## Run

```sh
iamar-world validate <world> --json
iamar-world play <world>
```

## Outputs

- Validation report with no spawn, water or collision errors, and a walk-through you have watched

## Success checks

- Done checklist (every item needs evidence: validate output, walk-test output, or file:line):
- Every walkable floor has a collision mesh or a box.
- No object meant to be solid has collision set to none.
- The spawn stands on a floor: no fall in the first 3 seconds.
- Walking across the floor and climbing a 0.3 m curb works.
- A 1 m wall blocks the visitor.
- No spawn is underwater or in mid-air (validate passes).
- Triangle counts are within budget (iamar-world perf reports them).
- Any moving or dynamic object has been tested for riders and the result is recorded. Whether a visitor standing on a moving body is carried is NOT yet verified: do not claim it until tested. Moving platforms are not supported in v1 until Chieh decides.

## Effects

- Validation and play read the world only; play starts an offline draft, not hosting.

## Fetch only the next needed step

- [Recipes: how to engineer a good world](https://iamar.ai/docs/releases/0b1d2d93415421fb/reference/kit/recipes-how-to-engineer-a-good-world.md)
- [Recipes and gotchas (learned by agents building real worlds)](https://iamar.ai/docs/releases/0b1d2d93415421fb/reference/kit/recipes-and-gotchas-learned-by-agents-building-real-worlds.md)
