workshop

← all creations

Robo Swerve

mechanics · created 2026-08-26

Lane-swerve driving with a passenger-comfort meter — smooth, early avoidance is free, but a late panic swerve costs the ride.

game-feelmovementcanvas

A swerve mechanic built around jerk, not steering itself: comfort only drains when the steering command changes sharply frame to frame. Hold a wide, early line around an obstacle and the passenger barely notices. Flinch at the last second and the same dodge that saves the car costs the ride. The two failure states are different games — crash into something you didn’t avoid, or get bailed on by a rider whose comfort ran out from too many panicked last-second corrections, even if you never hit anything.

Timed to the news: Las Vegas opened its streets to thousands of robotaxis this week.

Reuse

The mechanic lives in src/robo-swerve.js as a framework-free ES module:

Gotchas