OpenTPW

COAST-034: Align coaster car animation lifecycle#

Implementation update (October 18, 2026)#

Wheel animation epochs now belong to train slots and reset at the bounded state/rating initialization boundaries, independently of visibility and renderer lifetime. Independent source review passed. Added CPU lifecycle and optional asset-UV regressions, including direct existing-slot state reset. C# compilation/tests remain pending because local dotnet is unavailable; exact-head CI and GPU evidence are not yet established. COAST-034 stays open for bend endpoints, flume clips and rider sockets. The historical plan below preserves the remaining scope.

Historical status and classification#

Current residual#

COAST-CAR: cars stand on the curve at their coordinate's knot-pair parameter around the train's middle car, spaced by their types' pair distances, with the root node's pose replacing the model's root rest (0x43d8f0, so the model's +Z runs along the track and the camera seat looks along it), the wheel clip played at the type's factor x the train speed (0x474050) and the bend cars' meshes bent along the samples (0x438800, 0x438ab0); approximated: the wheel clip starts when the car is first drawn where the original starts clip 5 on every car at speed factor 1.0 in 0x43be10 (0x4732a0(model, 5, 0, 1, 1.0, 0); called by the state routine 0x435730 and the rating pass 0x43c450, which also zeroes the cars' speeds), the bend reads the sample yaw of this build's curve and a vertex beyond the tables takes their end entries, the flume boats' own clips (CrocCarM1..M3, MAGGOTM1..M2) have no player in the coaster code (only 0x43be10 plays id 5, on non-bend cars), and a rider hangs on the socket of its index in the car's seated list, the PC's socket order (0x44b270), unbent on a bend car

Source inspection#

Bounded work#

Start/reset wheel clips at original state/rating initialization instead of first visibility; investigate bend endpoints and seated sockets.

Missing evidence#

Trace end-of-table bend handling and whether flume clips are actually invoked; do not invent unused animation players.

Acceptance cases#

  1. Create car offscreen then reveal it: wheel phase matches continuously visible control car.

  2. Rating reset zeroes speed/restarts clip as original; bend-car rider sockets and out-of-range vertices follow established oracle.

  3. Add a reproducible synthetic fixture or reference trace identifying input, expected output, and affected function; a passing build alone is insufficient.

  4. Re-run focused regression tests for the listed source owner and document what remains unproven.

Dependencies and ownership#

Review boundary#

Source: docs/proposals/coast-034-align-coaster-car-animation-lifecycle.md in the project repository.