branchrust_reboot/main/rail_networkcancel
44 Commits over 31 Days - 0.06cph!
Cherry-pick. Port my compile fix
Merge Coupling -> Rail Network
Separated the train coupling model and added them to the above-ground WorkCart
Allow the above-ground WorkCart bogies to pivot
Matched the above-ground WorkCart controls colour to the exterior (similar to the red variant)
Added above-ground WorkCart prefab variant. Set up different materials on it. Made it save/load.
Merge Main -> Rail Network
Copy the rail spline - fix floating trains after restart
Raised the height of the front and rear collision detectors on the WorkCart. Fixes a few cases where the train would think it was colliding with the ground, e.g. J7 on seed 1051067268 size 4500.
Merge Main -> Rail Network
ProjectSettings fix re previous commit
Merge Main -> Rail Network
Removed TrainIsland scene (it's broken beyond
69624 anyway). Use ProceduralMapTesting instead.
Merge Main -> Rail Network
Removed orphan DebugEx timer
Enabled saving on y temp train and carriage entities
Make sure the wheels start at zero rotation
Update changed wheel bogie positions when received even if the train is off
Fix rear bogie jitter from using world instead of local rotation
Added missing time parameter info
Smoothed out train bogie rotation using the new generic interpolator
Merge Main -> Rail Network
Merge Main -> rail_network
Fixed placeholder train carriage NRE
Remove unused FX from the placeholder train carriage
Fixed spark FX not stopping on train carriage
Updated train carriage colliders, both temp train parent triggers + extra stuff
Merge wheel_tangents -> rail_network
Removed warning when spawning workcart on track that's generated at runtime
Added a method to TrainTrackSpline to get a tangent from the lookup-table points. Also auto-formatted a few of my train classes to Rust standard formatting.
Ported some train engine code back into BaseTrain for future wheel work
Don't collate train tracks on the client, it's unneeded
Test map collates train tracks
Added support for train track splines to connect to themselves when collating, making one continuous loop
Merge Main -> Rail Network
Fixed WorldSpline build compile (remove #if UNITY_EDITOR check)
Fixed WorkCart height on above-ground tracks, and collision issues with above-ground tracks. Work Cart now drivers properly above ground with collisions enabled
Added an improved TrainIsland scene
Merge Main -> rail_network
Merge TrainOnRails -> rail_network