MetroController.component
README.md
MetroController
Drives the two-car Helsinki Metro train along the modular track loop, animates sliding carriage doors at Kallioranta/Berggrund and Siltasaari/Broholmen stations, smoothly blends underground vs Nordic daylight lighting across the tunnel portals, and recycles modular track, tunnel, portal, station, viaduct, and coastal scenery sections out of sight when infiniteLoop is enabled.
Attach to the root MetroTrain entity alongside a Physics component (kind = "kinematic"). Runs at executionOrder = -200 so CharacterController (-100) and controller.first_person (-90) carry players smoothly inside the moving carriage.