A browser-based 3D night-drive prototype built with Three.js, Vite and cannon-es.
- Node.js 22 or newer
- npm
npm install
npm run devnpm run build
npm run previewThe production site is generated in dist/.
- Vercel: Framework preset Vite, build command
npm run build, output directorydist. - Netlify: build command
npm run build, publish directorydist.
- A / D or Left / Right: steer
- W / Up: accelerate
- S / Down: brake
- Space / Shift: nitro
- Escape: pause
- Touch: drag left/right to steer; on-screen pedals on touch devices
The vehicle simulation uses a rigid chassis and raycast suspension. It is not a soft-body deformation simulator and does not claim BeamNG.drive parity. Third-party model and texture assets should only be added after their licenses are checked.