Labs · Vectors

Spaceship: Thrust & Rotation

Spaceship: Thrust & Rotation simulation

Fly with the keyboard: ←/→ or A/D rotate, ↑ or W fires the engine, ↓ or S brakes. Thrust only adds an acceleration vector (cos θ, sin θ) × thrust along the ship's heading. The ship keeps drifting in whatever direction its velocity points, just like in space.

Turning doesn't change your course; only thrusting does. That is Newton's first law made playable. In autopilot mode the ship steers itself toward the mouse.

Point the ship backwards and thrust to stop. It's harder than it sounds.

Controls

Evolved from Motion 101: Acceleration.