Skip to content

OW5o: the room's vehicles in the car a client drives - #1494

Merged
transfix merged 1 commit into
feat/one-world-ow5nfrom
feat/one-world-ow5o
Nov 24, 2026
Merged

transfix merged 1 commit into
feat/one-world-ow5nfrom
feat/one-world-ow5o

Conversation

@transfix

Copy link
Copy Markdown
Owner

OW5's fifteenth slice (ARIADNE_WORLDS.md §18.5). The car a client drives now meets the room's other vehicles in its prediction. Before, it drove into them between samples until the relay pulled it back. Stacked on #1488.

What changed

  • The room's vehicles in a jolt or boat model's world (dynamic_vehicle_model::hold_obstacles). Before each step, the model puts a box for each vehicle the client shows where that vehicle will be at the step's end: on from where it was shown, along its velocity, as the walker's world already holds them (holon::held_obstacles).
    • A vehicle nothing can push on the relay (the kinematic plant's box) is a kinematic box.
    • A vehicle the relay's world can push (a jolt vehicle, a dynamic plant's box) is a body of its mass, put back where it is shown before each step. The car shoves it as the relay's does. The mass comes from room_entity::dynamics; holon_sync passes it to holon::hold_entity, which gains a mass argument.
  • The boxes are made with the model's world (jolt_vehicle_world::obstacle_room). The model saves and restores its world at every reconcile, and world::restore needs the same bodies in the same order, so boxes can't be added later.
    • The holon makes room for each vehicle held, plus two spares of each size and mass. A box no vehicle holds waits out of the way, under the world.
    • When more vehicles come into view than there's room for, hold_obstacles returns false. The holon then makes the model again with room, keeping the vehicle where it is, as a change of statics already does (holon::vehicle_rebuilds).
  • holon's held entities now count their steps while it drives too. Before, the count advanced only in the walker's step, so a held vehicle stood still in the prediction while you drove.

Tests

  • New AriadneOneWorld.AClientsCarMeetsTheRoomsVehicles: the relay's driver goes at full throttle at a vehicle parked 30 m ahead. The client's jolt model gets samples every 4 ticks through the pose stream.
Parked vehicle On the relay Model's gap at a sample, holding its box Without
Kinematic plant stops the car at x −13.2 3.9 mm 50 mm
Jolt Humvee (2,676 kg) shoved 4.1 m 3.9 mm 21 mm
  • With a kinematic box in place of the 2,676 kg body, the parked Humvee case was 24 mm, slightly worse than nothing. That is why a vehicle the relay can push is held with its mass.
  • New HolonVehicleTest.TheJoltCarWeDriveMeetsTheRoomsVehicles: the car a client holon predicts at full throttle stops at a vehicle held 15 m ahead (x −29.7, at its face). A client that doesn't hold it drives on through (x −21.9). The model had no room when it was made, so it is made again once.
  • These suites pass locally: scene world 128 (FleetBench skipped), holon 56, holon sync 39, server document 23, world dataset 4, pose stream 14, room AOI relay 10, room avatar 11, room scene 21, world rules 9, fast lane 9 (4 skipped). cvcgl_ariadne_physics passes. arigl builds.

Not done yet

  • Avatars aren't held. They could be held as 70 kg bodies, as the relay's are, but without the walker that steers one back toward its intent.
  • The dynamic plants' models still meet nothing. On the relay their boxes are bodies whose collisions go back into the plant.
  • A vehicle is held where it is shown, which is its playout delay behind the relay. A parked one is exactly where it is; a moving one is off by its speed times that delay.
  • Making the model again keeps the vehicle's pose and speed but not its wheels' spin or the engine's state, as with a change of statics.

Not verified

  • I haven't run it live, and haven't checked arigl visuals.

A jolt or boat model's world holds a box for each of the room's
vehicles the client shows (dynamic_vehicle_model::hold_obstacles, from
holon::held_obstacles). Before each step each goes where its vehicle is
to be at the step's end, along its velocity, as the walker's world holds
them. A kinematic-plant vehicle is a kinematic box. A vehicle the relay
can push (a jolt vehicle, a dynamic plant's box) is a body of its mass
(room_entity::dynamics, through hold_entity's new mass), put where it is
shown before each step, so the car shoves it as the relay's does.

The boxes are made with the model's world (obstacle_room: one per
vehicle held and two spares of each size and mass), since world::restore
needs the same bodies. When more come into view than it has room for,
the holon makes the model again with room (vehicle_rebuilds). Held
entities now count their steps while the participant drives, too.

The relay's car into a parked vehicle, sampled every 4 ticks through the
pose stream: the model is within 3.9 mm holding its box, 50 mm without
(kinematic plant); 3.9 mm and 21 mm for a jolt Humvee shoved 4 m.
@transfix
transfix merged commit 7134a0b into feat/one-world-ow5n Nov 24, 2026
6 checks passed
@transfix
transfix deleted the feat/one-world-ow5o branch November 24, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant