Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
chore(w02-vehicles): verify + document real Rapier vehicle physics, clean scratch scripts
fudjiaaf8b0caa4387
diff --git a/data/changelog.json b/data/changelog.jsonindex 81d27b521..84ef8e213 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-07-08",+ "title": "Drivable vehicles in the open world",+ "summary": "The plaza world at /play now has real, drivable cars. Walk up to a parked coupe, sedan, pickup, or buggy, press F (or tap it on mobile) to take the wheel, and drive with WASD or on-screen pedals — full Rapier physics under the hood, so the car actually collides with district buildings, has real suspension and steering, and can flip and auto-right itself. Every car is a shared world object: other players see you driving it in real time, and the seat is server-arbitrated so only one person can drive a given car at once. Exit with F and the car parks exactly where you left it.",+ "tags": [+ "feature"+ ],+ "link": "/play"+ },{"date": "2026-07-08","title": "Walk on-chain: gasless real-time presence on BNB Chain",diff --git a/prompts/agent-briefs/W-world-online/PORT-CHECKLIST.md b/prompts/agent-briefs/W-world-online/PORT-CHECKLIST.mdindex 6c5f53db7..c8e7cb129 100644--- a/prompts/agent-briefs/W-world-online/PORT-CHECKLIST.md+++ b/prompts/agent-briefs/W-world-online/PORT-CHECKLIST.md@@ -91,23 +91,64 @@ real district + real day/night — no mocks. Next: **W02** (vehicles) can now as----## Phase 2 — Vehicles & driving+## Phase 2 — Vehicles & driving — SHIPPED 2026-07-08Maps to **W02**. Depends on Phase 1 (needs the Rapier world + terrain colliders).-- [ ] **P2.1 — Wire the orphaned client `VehicleManager`.** Import- [src/game/vehicles.js](../../../src/game/vehicles.js) into `/play`, spawn at least one drivable- vehicle, and hook enter/exit to proximity (`VEHICLE_ENTER_RANGE_M` already exists server-side).-- [ ] **P2.2 — Network vehicle state through `WalkRoom`.** The server already has- `VEHICLE_WORLD_RADIUS_M` / `vehicleMaxStepM` / `vehicleMaxSpeedMps`. Confirm the room's- vehicle schema is sent to `/play` clients via `CommunityNet` and that remote vehicles render- via [src/game/vehicle-mesh.js](../../../src/game/vehicle-mesh.js).-- [ ] **P2.3 — Driving camera + HUD.** Reuse the camera-modes module (P1.4) for a chase cam;- add a speed/throttle readout to the existing `WorldHudSystem`- ([src/game/hud/](../../../src/game/hud/)).+- [x] **P2.1 — Wire the orphaned client `VehicleManager`.**+ [src/game/vehicles.js](../../../src/game/vehicles.js) is imported and instantiated in+ `coincommunities.js` (`this.vehicles = new VehicleManager({ host: this })`); it spawns the+ server-seeded fleet (`VEHICLE_SPAWNS` in `multiplayer/src/vehicles.js` — 6 cars across 4 types:+ coupe/sedan/pickup/buggy) and gates enter/exit on `VEHICLE_ENTER_RANGE_M` proximity, contextual+ **F** to take the wheel / tap-to-enter on touch.+- [x] **P2.2 — Network vehicle state through `WalkRoom`.** `WalkRoom.js` seeds the fleet+ (`_seedVehicles`), handles `venter`/`vexit`/`vsync` (rate-limited via the same `_actionOk` gate+ every other handler uses, teleport/speed-hack clamped in `_applyVehicleTransform`), and the+ `Vehicle` schema (`multiplayer/src/schemas.js`) auto-replicates to every `/play` client via+ `CommunityNet` (`vehicleAdd`/`vehicleChange`/`vehicleRemove`/`vehicle` ack events). Remote+ vehicles render + interpolate via [src/game/vehicle-mesh.js](../../../src/game/vehicle-mesh.js).+- [x] **P2.3 — Driving camera + HUD.** The follow camera (P1.4's camera-modes module) hands off+ to a chase view on entry (`camDist` pulled out to 11m+) and re-centers behind the car's heading+ each frame; a dedicated speedometer + Exit button + touch pedal/steering cluster+ (`.veh-hud`/`.veh-speedo` in `vehicles.js`) shows live km/h and brake-light state. This is a+ self-contained overlay rather than a merge into `WorldHudSystem`+ ([src/game/hud/world-hud.js](../../../src/game/hud/world-hud.js)) — functionally complete, but+ folding it into that shared system remains a legitimate follow-up if the HUD grows more panels.++**Real bug found + fixed during verification:** the raycast vehicle controller+(`createVehicle` in [src/physics/physics-world.js](../../../src/physics/physics-world.js)) was+correct, but 3 of the 4 vehicle types' `suspension.rest` values in+[multiplayer/src/vehicles.js](../../../multiplayer/src/vehicles.js) left too little clearance+between the chassis collider and the wheel-contact line for their chassis height — the hull+itself rested on/against the ground and its own friction pinned the car almost dead still+regardless of engine force (sedan and pickup: ~0.00 m/s after 3s of full throttle even at 10x+their spec'd engine force; coupe: crawled at 0.6 m/s). Root-caused with a standalone real-Rapier+repro (no browser, no game loop — immune to frame-rate starvation) at+[scripts/tmp-verify-w02-physics-core.mjs](../../../scripts/tmp-verify-w02-physics-core.mjs).+Fixed by raising `suspension.rest` (coupe 0.32→0.4, sedan 0.36→0.5, pickup 0.42→0.6; buggy was+already fine at 0.46) — all four types now accelerate, steer, and are stopped by real wall+collision correctly.**Phase 2 done when:** a player walks up to a car, presses to enter, drives it across terrain-with collision, a second browser sees the car move smoothly, and exit returns to on-foot.+with collision, a second browser sees the car move smoothly, and exit returns to on-foot. —+**Verified for real, twice:**+1. A standalone real-Rapier physics repro (no browser/network — immune to shared-box CPU+ contention): [scripts/tmp-verify-w02-physics-core.mjs](../../../scripts/tmp-verify-w02-physics-core.mjs)+ — real acceleration on open ground, a real wall stopping the car (not tunnelling, not a+ bounds-clamp teleport), real steering-induced lateral displacement, and the handbrake+ arresting speed. All passing against the production `createVehicle`/`vehicleSpec` code.+2. A full two-Chromium-context Playwright run against a live Vite dev server + a freshly-started+ Colyseus `WalkRoom` (no mocked physics, no mocked network):+ [scripts/tmp-verify-w02-vehicles.mjs](../../../scripts/tmp-verify-w02-vehicles.mjs) — Player A+ joins, Rapier boots, the 6-vehicle fleet syncs, A walks to a parked car under real on-foot+ Rapier movement, presses F, the server grants the seat, the driving HUD appears, Player B's+ independent client sees the `driver` field flip to A's sessionId and sees the car's replicated+ mesh actually move in lock-step with A's throttle input, A exits, and B sees it parked again —+ zero console errors/warnings on either client. (Environment note: this shared box runs many+ concurrent agent build/dev/test processes — load average routinely exceeds its core count —+ which starves headless Chromium's frame rate; the script's wall-clock timeouts were widened+ accordingly. This affects wall-clock budget only, not the pass/fail physics or networking+ assertions.)---diff --git a/scripts/tmp-calibrate.mjs b/scripts/tmp-calibrate.mjsdeleted file mode 100644index ab459f804..000000000--- a/scripts/tmp-calibrate.mjs+++ /dev/null@@ -1,26 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight, VEHICLE_TYPE_IDS } from '../multiplayer/src/vehicles.js';--const rapier = await initRapier();--async function testForce(type, force) {- const world = new PhysicsWorld(rapier);- world.addGround(0, 200);- const spec = { ...vehicleSpec(type), engineForce: force };- const y = vehicleRestHeight(type) + 0.1;- const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });- for (let i = 0; i < 180; i++) { vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false }); world.step(1 / 60); }- const t = vehicle.transform();- return t.speed;-}--for (const type of VEHICLE_TYPE_IDS) {- const spec = vehicleSpec(type);- console.log(`--- ${type} (mass=${spec.mass}, spec.engineForce=${spec.engineForce}) ---`);- for (const mult of [1, 2, 3, 4, 5, 6, 8, 10]) {- const f = spec.engineForce * mult;- const speed = await testForce(type, f);- console.log(` x${mult} (F=${f}) -> speed@3s=${speed.toFixed(2)} m/s`);- }-}-process.exit(0);diff --git a/scripts/tmp-debug-coupe.mjs b/scripts/tmp-debug-coupe.mjsdeleted file mode 100644index 042089420..000000000--- a/scripts/tmp-debug-coupe.mjs+++ /dev/null@@ -1,22 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();-function restHeightFor(spec) { return spec.dims.h/2*0.2 + spec.suspension.rest + spec.wheel.radius; }-async function test(type, restOverride) {- const world = new PhysicsWorld(rapier);- world.addGround(0, 200);- const base = vehicleSpec(type);- const spec = { ...base, suspension: { ...base.suspension, rest: restOverride } };- const y = restHeightFor(spec) + 0.1;- const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });- for (let i = 0; i < 180; i++) { vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false }); world.step(1 / 60); }- const t = vehicle.transform();- console.log(`${type} rest=${restOverride} -> z=${t.z.toFixed(2)} speed=${t.speed.toFixed(2)} (top=${spec.topSpeed})`);-}-await test('coupe', 0.32); // stock-await test('coupe', 0.4);-await test('coupe', 0.44);-await test('coupe', 0.48);-console.log('---buggy sanity (should stay good, no change planned)---');-await test('buggy', 0.46);-process.exit(0);diff --git a/scripts/tmp-debug-pickup.mjs b/scripts/tmp-debug-pickup.mjsdeleted file mode 100644index 6cf331ca3..000000000--- a/scripts/tmp-debug-pickup.mjs+++ /dev/null@@ -1,19 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();-const world = new PhysicsWorld(rapier);-world.addGround(0, 200);-const spec = { ...vehicleSpec('pickup'), engineForce: 60000 };-const y = vehicleRestHeight('pickup') + 0.1;-const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });-for (let i = 0; i < 120; i++) {- vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false });- world.step(1/60);- if (i % 20 === 0) {- const t = vehicle.transform();- const contacts = [0,1,2,3].map(w => vehicle.controller.wheelIsInContact(w));- const susp = [0,1,2,3].map(w => vehicle.controller.wheelSuspensionLength(w)?.toFixed(3));- console.log(`i=${i} y=${t.y.toFixed(3)} z=${t.z.toFixed(3)} speed=${t.speed.toFixed(3)} contacts=${contacts} susp=${susp}`);- }-}-process.exit(0);diff --git a/scripts/tmp-debug-pickup2.mjs b/scripts/tmp-debug-pickup2.mjsdeleted file mode 100644index 406fd1ce8..000000000--- a/scripts/tmp-debug-pickup2.mjs+++ /dev/null@@ -1,20 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();-const world = new PhysicsWorld(rapier);-world.addGround(0, 200);-const spec = { ...vehicleSpec('pickup'), engineForce: 60000 };-const y = vehicleRestHeight('pickup') + 0.1;-const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });-for (let i = 0; i < 40; i++) {- vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false });- world.step(1/60);- if (i % 5 === 0) {- const eng = [0,1,2,3].map(w => vehicle.controller.wheelEngineForce(w));- const fwd = [0,1,2,3].map(w => vehicle.controller.wheelForwardImpulse(w)?.toFixed(2));- const side = [0,1,2,3].map(w => vehicle.controller.wheelSideImpulse(w)?.toFixed(2));- const brk = [0,1,2,3].map(w => vehicle.controller.wheelBrake(w));- console.log(`i=${i} eng=${eng} fwd=${fwd} side=${side} brk=${brk}`);- }-}-process.exit(0);diff --git a/scripts/tmp-debug-pickup3.mjs b/scripts/tmp-debug-pickup3.mjsdeleted file mode 100644index 050ac202c..000000000--- a/scripts/tmp-debug-pickup3.mjs+++ /dev/null@@ -1,18 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();-const world = new PhysicsWorld(rapier);-world.addGround(0, 200);-const spec = { ...vehicleSpec('pickup'), engineForce: 60000 };-const y = vehicleRestHeight('pickup') + 0.1;-const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });-for (let i = 0; i < 120; i++) {- vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false });- world.step(1/60);- if (i % 10 === 0) {- const lv = vehicle.body.linvel();- const t = vehicle.body.translation();- console.log(`i=${i} pos=(${t.x.toFixed(3)},${t.y.toFixed(3)},${t.z.toFixed(3)}) linvel=(${lv.x.toFixed(3)},${lv.y.toFixed(3)},${lv.z.toFixed(3)}) ctrlSpeed=${vehicle.controller.currentVehicleSpeed().toFixed(3)}`);- }-}-process.exit(0);diff --git a/scripts/tmp-debug-pickup4.mjs b/scripts/tmp-debug-pickup4.mjsdeleted file mode 100644index e8c1dc34c..000000000--- a/scripts/tmp-debug-pickup4.mjs+++ /dev/null@@ -1,26 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();--// Test A: spawn much higher to rule out initial chassis-ground embedding.-{- const world = new PhysicsWorld(rapier);- world.addGround(0, 200);- const spec = { ...vehicleSpec('pickup'), engineForce: 60000 };- const vehicle = world.createVehicle({ position: { x: 0, y: vehicleRestHeight('pickup') + 1.0, z: 0 }, yaw: 0, spec });- for (let i = 0; i < 150; i++) { vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false }); world.step(1 / 60); }- const t = vehicle.transform();- console.log('A) spawn+1.0m higher -> z=', t.z.toFixed(3), 'speed=', t.speed.toFixed(3), 'y=', t.y.toFixed(3));-}--// Test B: much larger suspension rest length (more clearance).-{- const world = new PhysicsWorld(rapier);- world.addGround(0, 200);- const spec = { ...vehicleSpec('pickup'), engineForce: 60000, suspension: { ...vehicleSpec('pickup').suspension, rest: 0.9 } };- const vehicle = world.createVehicle({ position: { x: 0, y: vehicleRestHeight('pickup') + 0.5, z: 0 }, yaw: 0, spec });- for (let i = 0; i < 150; i++) { vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false }); world.step(1 / 60); }- const t = vehicle.transform();- console.log('B) suspension.rest=0.9 -> z=', t.z.toFixed(3), 'speed=', t.speed.toFixed(3), 'y=', t.y.toFixed(3));-}-process.exit(0);diff --git a/scripts/tmp-debug-sedan-fix.mjs b/scripts/tmp-debug-sedan-fix.mjsdeleted file mode 100644index 169cb4d93..000000000--- a/scripts/tmp-debug-sedan-fix.mjs+++ /dev/null@@ -1,17 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();--for (const restMul of [1.0, 1.5, 2.0, 2.5]) {- const world = new PhysicsWorld(rapier);- world.addGround(0, 200);- const base = vehicleSpec('sedan');- const rest = base.suspension.rest * restMul;- const spec = { ...base, suspension: { ...base.suspension, rest } };- const y = 0.2 + rest + spec.wheel.radius + spec.dims.h * 0.2; // vehicleRestHeight formula, recomputed for new rest- const vehicle = world.createVehicle({ position: { x: 0, y: y + 0.3, z: 0 }, yaw: 0, spec });- for (let i = 0; i < 180; i++) { vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false }); world.step(1 / 60); }- const t = vehicle.transform();- console.log(`rest x${restMul} (${rest.toFixed(2)}m) -> z=${t.z.toFixed(2)} speed=${t.speed.toFixed(2)} y=${t.y.toFixed(3)}`);-}-process.exit(0);diff --git a/scripts/tmp-debug-tune.mjs b/scripts/tmp-debug-tune.mjsdeleted file mode 100644index e911b2c80..000000000--- a/scripts/tmp-debug-tune.mjs+++ /dev/null@@ -1,31 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();--function restHeightFor(spec) {- const hy = spec.dims.h / 2;- return hy * 0.2 + spec.suspension.rest + spec.wheel.radius;-}--async function test(type, restOverride) {- const world = new PhysicsWorld(rapier);- world.addGround(0, 200);- const base = vehicleSpec(type);- const spec = { ...base, suspension: { ...base.suspension, rest: restOverride } };- const y = restHeightFor(spec) + 0.1;- const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });- for (let i = 0; i < 180; i++) { vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false }); world.step(1 / 60); }- const t = vehicle.transform();- console.log(`${type} rest=${restOverride} -> z=${t.z.toFixed(2)} speed=${t.speed.toFixed(2)} (top=${spec.topSpeed})`);-}--await test('sedan', 0.36); // stock-await test('sedan', 0.46);-await test('sedan', 0.5);-await test('sedan', 0.56);-console.log('---');-await test('pickup', 0.42); // stock-await test('pickup', 0.55);-await test('pickup', 0.62);-await test('pickup', 0.7);-process.exit(0);diff --git a/scripts/tmp-debug-wheel.mjs b/scripts/tmp-debug-wheel.mjsdeleted file mode 100644index 975a63675..000000000--- a/scripts/tmp-debug-wheel.mjs+++ /dev/null@@ -1,22 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';--const rapier = await initRapier();-const world = new PhysicsWorld(rapier);-world.addGround(0, 200);-const spec = vehicleSpec('sedan');-const y = vehicleRestHeight('sedan') + 0.1;-const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });--for (let i = 0; i < 120; i++) {- vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false });- world.step(1/60);- if (i % 20 === 0) {- const t = vehicle.transform();- const contacts = [0,1,2,3].map(w => vehicle.controller.wheelIsInContact(w));- const susp = [0,1,2,3].map(w => vehicle.controller.wheelSuspensionLength(w));- const eng = [0,1,2,3].map(w => vehicle.controller.wheelEngineForce(w));- console.log(`i=${i} y=${t.y.toFixed(3)} z=${t.z.toFixed(3)} speed=${t.speed.toFixed(3)} contacts=${contacts} susp=${susp.map(s=>s?.toFixed(3))} eng=${eng}`);- }-}-process.exit(0);diff --git a/scripts/tmp-debug-wheel2.mjs b/scripts/tmp-debug-wheel2.mjsdeleted file mode 100644index 64e9c203a..000000000--- a/scripts/tmp-debug-wheel2.mjs+++ /dev/null@@ -1,19 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';--const rapier = await initRapier();-const world = new PhysicsWorld(rapier);-world.addGround(0, 200);-const spec = { ...vehicleSpec('sedan'), grip: 1000 };-const y = vehicleRestHeight('sedan') + 0.1;-const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });--for (let i = 0; i < 180; i++) {- vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false });- world.step(1/60);- if (i % 20 === 0) {- const t = vehicle.transform();- console.log(`i=${i} y=${t.y.toFixed(3)} z=${t.z.toFixed(3)} speed=${t.speed.toFixed(3)}`);- }-}-process.exit(0);diff --git a/scripts/tmp-debug-wheel3.mjs b/scripts/tmp-debug-wheel3.mjsdeleted file mode 100644index 4473c9d2d..000000000--- a/scripts/tmp-debug-wheel3.mjs+++ /dev/null@@ -1,14 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';--const rapier = await initRapier();-const world = new PhysicsWorld(rapier);-world.addGround(0, 200);-const spec = vehicleSpec('sedan');-const y = vehicleRestHeight('sedan') + 0.1;-const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });-console.log('indexUpAxis readback:', vehicle.controller.indexUpAxis);-console.log('indexForwardAxis readback:', vehicle.controller.indexForwardAxis);-console.log('numWheels:', vehicle.controller.numWheels());-for (let i=0;i<4;i++) console.log(' wheel', i, 'conn', vehicle.controller.wheelChassisConnectionPointCs(i), 'axle', vehicle.controller.wheelAxleCs(i), 'dir', vehicle.controller.wheelDirectionCs(i));-process.exit(0);diff --git a/scripts/tmp-debug-wheel4.mjs b/scripts/tmp-debug-wheel4.mjsdeleted file mode 100644index cefac3bab..000000000--- a/scripts/tmp-debug-wheel4.mjs+++ /dev/null@@ -1,19 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';--const rapier = await initRapier();-const world = new PhysicsWorld(rapier);-world.addGround(0, 200);-const spec = { ...vehicleSpec('sedan'), engineForce: 100000 };-const y = vehicleRestHeight('sedan') + 0.1;-const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });--for (let i = 0; i < 120; i++) {- vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false });- world.step(1/60);- if (i % 20 === 0) {- const t = vehicle.transform();- console.log(`i=${i} y=${t.y.toFixed(3)} z=${t.z.toFixed(3)} speed=${t.speed.toFixed(3)}`);- }-}-process.exit(0);diff --git a/scripts/tmp-debug-wheelF.mjs b/scripts/tmp-debug-wheelF.mjsdeleted file mode 100644index 58b1442e1..000000000--- a/scripts/tmp-debug-wheelF.mjs+++ /dev/null@@ -1,12 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();-const world = new PhysicsWorld(rapier);-world.addGround(0, 200);-const spec = { ...vehicleSpec('sedan'), engineForce: 35000 };-const y = vehicleRestHeight('sedan') + 0.1;-const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });-for (let i = 0; i < 120; i++) { vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false }); world.step(1/60); }-const t = vehicle.transform();-console.log('F=35000 ->', 'z=' + t.z.toFixed(3), 'speed=' + t.speed.toFixed(3));-process.exit(0);diff --git a/scripts/tmp-debug-wheelT.mjs b/scripts/tmp-debug-wheelT.mjsdeleted file mode 100644index fd6d27054..000000000--- a/scripts/tmp-debug-wheelT.mjs+++ /dev/null@@ -1,12 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();-const world = new PhysicsWorld(rapier);-world.addGround(0, 200);-const spec = vehicleSpec('buggy');-const y = vehicleRestHeight('buggy') + 0.1;-const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });-for (let i = 0; i < 300; i++) { vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false }); world.step(1/60); }-const t = vehicle.transform();-console.log('buggy engineForce=' + spec.engineForce + ' mass=' + spec.mass + ' ->', 'after 5s z=' + t.z.toFixed(3), 'speed=' + t.speed.toFixed(3));-process.exit(0);diff --git a/scripts/tmp-verify-fix.mjs b/scripts/tmp-verify-fix.mjsdeleted file mode 100644index 4177a07d0..000000000--- a/scripts/tmp-verify-fix.mjs+++ /dev/null@@ -1,14 +0,0 @@-import { PhysicsWorld, initRapier } from '../src/physics/physics-world.js';-import { vehicleSpec, vehicleRestHeight, VEHICLE_TYPE_IDS } from '../multiplayer/src/vehicles.js';-const rapier = await initRapier();-for (const type of VEHICLE_TYPE_IDS) {- const world = new PhysicsWorld(rapier);- world.addGround(0, 200);- const spec = vehicleSpec(type);- const y = vehicleRestHeight(type) + 0.1;- const vehicle = world.createVehicle({ position: { x: 0, y, z: 0 }, yaw: 0, spec });- for (let i = 0; i < 180; i++) { vehicle.setInput({ throttle: 1, brake: 0, steer: 0, handbrake: false }); world.step(1 / 60); }- const t = vehicle.transform();- console.log(`${type}: after 3s stock throttle -> z=${t.z.toFixed(2)}m speed=${t.speed.toFixed(2)} m/s (topSpeed spec=${spec.topSpeed})`);-}-process.exit(0);