/ kitsgame dev kits you can try before you buy

GTA IV-style driving for your browser game.

vehicle physics kit · three.js and Rapier

Includes the TypeScript source and tuning lab.

Features

Suspension

Each wheel has a raycast spring and damper. Their forces produce body roll and weight transfer.

Tyre grip

Grip falls past the tyre's slip limit. Tune the falloff and rear grip in the lab.

Rollovers

The RV rolls in a J-turn from 60 km/h. Hold F to push it upright.

Engine sound

An AudioWorklet synthesises inline-4, V8, big V8 and inline-3 voices.

Gearbox and diff

Torque curve, automatic gearbox, launch clutch, rev limiter and a limited-slip diff.

Your car model

Fit a glTF car with named wheel nodes to a handling preset.

Bench numbers

Braking starts at 100 km/h, or about 96 km/h for the RV after 30 seconds of acceleration.

Preset0 to 100 km/hBraking distanceGrip at 60 km/hRolls over
Sedan8.4 s46.6 m0.73 gno
Muscle7.7 s48.2 m0.69 gno
Compact10.1 s47.4 m0.80 gno
RV6.0 s to 5041.8 mon two wheelsfrom 60 km/h

In the zip

src/
the handling model, Rapier binding, engine sound and model fitting
lab/
the tuning lab from the demo
tools/sim.ts
headless bench
docs/
handling model and tuning guide; src/params.ts defines the 45 fields
AGENTS.md
instructions for coding agents

Setup

const car = new RapierVehicle(RAPIER, world, cloneParams(vehiclePresets.sedan), spawn, 0);
world.timestep = 1 / 120;

// every 1/120 s
car.input.throttle = gas;
car.input.steer = stick;
car.preStep(1 / 120);
world.step();

Built for three.js r186 and Rapier 0.20.

Agent instructions

AGENTS.md covers integration and bench checks before and after handling changes. CLAUDE.md points to it.

Screenshots

vehicle lab, stylized look
stylized
vehicle lab, psx look
psx
Touge mountain road driving showcase
Touge · vehicle handling showcase
Car driving along the Touge mountain road
Touge · on the road

Specs

Engine
three.js r186
Physics
Rapier 0.20
Language
TypeScript

Licence

Use it in any number of commercial games. Don't resell or share the source.

Pricing

Solo

$79

one developer

  • one developer
  • any number of games
  • free 1.x updates
buy solo →

Studio

$249

up to five developers

  • one team or company
  • any number of games
  • free 1.x updates
buy studio →

If the kit does not work for your project, reply to your Polar receipt email within 7 days of purchase for a full refund.

Get an email when the next kit ships.

One email per kit launch.

Questions

Does it need WebGPU?

The lab uses WebGPU. The handling model has no renderer; you supply rendering and a fixed physics loop.

Unity or Godot?

Ports need physics adapters and a translation of the TypeScript model. A Unity C# edition with the same handling is coming to the Unity Asset Store.

Multiplayer?

Networking is not included. Run the simulation on the host or vehicle owner and replicate its state.

Licence?

Use it in any number of commercial games. Don't resell or share the source.

Updates?

Free for all 1.x versions, from your Polar customer portal.

Refunds?

If the kit does not work for your project, reply to your Polar receipt email within 7 days of purchase for a full refund.