Ride the future: the campus shuttle as a rideable bus #105
No reviewers
Labels
No labels
animation
audio
blocked
bug report
controversial
documentation
easy
feature request
hard
medium
multiplayer
physics
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
elsie/liuverse!105
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/ride-the-future"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The campus has a real autonomous shuttle, and OSM maps it: the
Ride the futurenetwork is aroute_masterover tworoute=busrelations, described as "Självkörande buss", running the Corson path and Olaus Magnus väg between Blå Havet, B-Huset, Studenthuset and Campushallen.This is the first half of #28: the shuttle exists, you can ride it, and the data it needs to drive itself is already in the bake.
The bake reads relations
liuverse-fetch-mapparses OSM relations now, and the campus's own shuttle network bakes intoBakedWorld::routes: the line it drives and its stops, in route order. The extract is a box, so a route that leaves it comes back as two pieces of line rather than one false jump across the gap — which is what the next step needs to follow.The shuttle is a vehicle
VehicleKind::Busis a second kind alongside the scooter and the bicycle: slower, heavier, no drift, and with seats instead of a deck — a driver at the wheel and six behind, full at seven. It spawns waiting at the route's first stop, facing the way it drives, and rides like any other vehicle:Emounts, the throttle and the steering are the same inputs, and the server is authoritative over it as it is over the rest of the fleet.It is a cabin, not a block
The mesh is panels around the passengers rather than a solid volume: a floor, seats meshed exactly where
rider_positionputs the riders, and windows that are one quad per side so the glass blends once instead of twice. That glass is the first translucent surface in the renderer, so the lit pass gets a blended twin that writes no depth and draws after everything opaque.The livery is the real one: magenta shell, cyan roof, navy skirt, dark glass.
What this does not do yet
The bus does not drive itself. It waits at its stop like any other vehicle, and the autonomy — following the baked line, stopping at the stops, picking people up — is the next step. The route and the stops are in the data for exactly that.
Refs #28
dc0c424435to789e48b140