# 3D Vehicle Worlds

> Explore interactive 3D vehicle worlds in your browser, with varied terrain, camera controls and driving effects. Choose a playable example to begin.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 0.1.1
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/gunship-flight

## What you get

Bring a vehicle, the worlds to explore and optionally cameras and weapons. The Skill returns a downloadable Skill (meta prompt, lessons, verification) and playable vehicle examples.

## Install

Download the Skill package from https://www.sandbase.ai/skills/interactive-3d/gunship-flight (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/gunship-flight build a playable <your aircraft> that flies through <your worlds>
```

## How it works

1. **Fill the vehicle slots** Gunship Flight needs the vehicle and biomes slots; cameraModes, weapons, hud, interaction and extraPrompt are optional, each up to 2000 characters. node scripts/fill-prompt.mjs --slots slots.json --lang en --out prompt.md renders the meta prompt, and assets/prompts/examples/four-biomes.json is the example's slots file. Give the prompt and any reference images to your coding agent, which does the work locally.
2. **Fly the reference gunship** node scripts/new-project.mjs --out my-flight and npm ci give a three.js app with a lofted hull, four biome presets, flight phases, autopilot, four cameras, guns, rockets, HUD and synthesized sound. Press L to launch from the desert pad, C to switch orbit, chase, cockpit and cinema views, F to fire, R for rockets and 1 to 4 for the snow forest, cloud sea and red canyon.
3. **Shoot biomes and cameras** npm run build:single writes dist-single/index.html, and npm run shoot -- --file dist-single/index.html compares biome and camera screenshots with the reference. It needs Node 22.4 or newer and local Chrome; record also needs ffmpeg. The example fired 2 rockets, logged 21 ground impacts, and its two most similar biome shots still differed by 54.6 on a 0 to 255 scale.

## FAQ

### Is Gunship Flight a flight simulator?

No. Gunship Flight is arcade flight: a pursuit autopilot follows each biome's loop with a simple steering override in chase view. It has no aerodynamic model, no collision with props and no damage. Weapons hit the terrain height function, not individual props.

### Can Gunship Flight fly another aircraft?

Yes. Gunship Flight builds the hull from cross-section stations in src/aircraft/gunship.ts for fuselage, canopy, nacelles, wings and fins, with paint in src/aircraft/skin.ts. Keep the turret, pods and eye points in step in src/state/sim.ts, because the simulation uses them.

### How do I add a world to Gunship Flight?

Add a preset and height function in src/biomes/defs.ts, its meshes in src/biomes/build.ts, its id in src/config.ts and its names in src/i18n/strings.json. Gunship Flight's shoot step then expects the new world to differ from every other world. Terrain is a finite grid around the loop, with fog and sky beyond it.

### Does Gunship Flight need an API key?

No. Gunship Flight calls no model or network service, so building and flying it is not billed. npm ci downloads the pinned packages from the public npm registry. The finished file runs with no network access and no storage.

### Does Gunship Flight run on phones?

Phones get Gunship Flight's low tier automatically, with coarser terrain, a thinner forest, fewer particles, no bloom and smaller shadows, plus on-screen buttons. It is verified under headless touch emulation only, not on devices. Because the headless capture is silent, someone must listen to the sound by hand.

## Examples

- Gunship Flight interactive demo (scene)
- Tank patrol (scene)
- Helicopter flight (video)
- Tank patrol (video)
