Library
Everything in the physics sandbox, one hop away.
GitHub repo
TeraBox
Sources & licenses
three.js r147 + fflate (MIT), matter-js (MIT), hammer.js (MIT), marked (MIT) — vendored in vendor/ with licenses. Quaternius models CC0. Addons GPL-3.0 (see their SOURCE.md files).
Earlier 2D prototypes, kept for reference. The sandbox itself is 3D and built around real models: use Models and Lab.
Western Heart Dev Sandbox
A mobile-first 3D dev sandbox for Western Heart and other games. Inspect real rigged models, tune jiggle, soft-body (XPBD), ragdoll (Rapier), face and visemes, foot IK, and moveset frame data, and run two-model fights with an AI test harness. Stills and video can be captured from any lab. The older 2D demos and drills are under Archive.
Gestures
- Tap — spawn a ball (or select a body)
- Double-tap — shockwave blast
- Press & hold — grab a body, release to fling it
- Drag — pull bodies around on a spring
- Pinch — zoom the camera
- Two-finger drag — pan the camera
- Swipe ←/→ — switch demo scenes
Open-source stack
- matter-js — 2D physics engine (MIT)
- hammer.js — touch gesture recognition (MIT)
- marked — markdown rendering (MIT)
Vendored dist files + licenses live in vendor/.
Works offline once loaded (service worker).