branchrust_reboot/main/rail_network/couplingcancel
81 Commits over 31 Days - 0.11cph!
Refactored the way front/back is calculated on coupled trains. Fixed GetTotalPushingMass calculation to avoid recursive loops. Fixes various problem situations e.g. Coupled trains with train cars facing in two different directions colliding with a non-coupling WorkCart that's up against a static barrier
Coupling WIP before I refactor some systems
Fixed IsCoupledBackwards calculation with reversed trains
Merge Rail Network 2 -> Coupling
Improvements to train collision handling
Non-coupling train collisions mostly working again, after refactoring it into the new coupled train system
Better code for train cars that don't lock together + other train work
Made it easier to shunt around long trains. Calculate the total mass in a less realistic but more fun way.
Made train wagons indestructable for this release (until we get gibs)
Fixed wagons not syncing position to the client. D'oh
Fixed trigger NRE with coupling
Fixed incorrect wagon rail height
Regenerated track splines
Test map edit. Added all the wagons
WorkCart train coupling LOD assignment fix
Set up WorkCart coupling LODs
Set up above-ground WorkCart bounds and colliders for coupling
Coupling point setup for above-ground WorkCart
Compile fix for uncoupling
Don't scan for decoupling if the coupling point can't be locked
Deleted my placeholder train engine and carriages. Moved some assets around.
Merge Rail Network -> Coupling
WIP refactoring train car collisions and coupling. Hoping to remove a lot of the old "workcarts pushing other work carts" code, and instead treat it as an unlocked coupling, even for train cars that don't actually have couplings (like the train tunnel WorkCarts)
Merge Rail Network -> Coupling
Merge Rail Network -> Coupling
Coupled train collisions WIP
Added barriers to the test map rail
Made the train carriages a lot lighter
Train car coupling spacing is now correct. Also fixes the brief jitter when first coupling
Added blue and green test carriages
Train coupling WIP. Coupled trains can now move forwards or backwards without glitching out.
Coupling WIP. Coupled trains now work in a perfect "spherical cows in a vacuum" type of scenario. Remaining scenarios TODO.
Train coupling WIP. Many bug fixes and many new bugs.
Revert
69804. We know which way the train is heading, so we can make do with only one alt track.
Fixed inherited track speed when trains couple sometimes being reversed. Removed TrackSpeed property.
Increased train engine power
Fixed TryGetOppositeCoupling result
When trains collide and couple, maintain an average of their previous track speeds
Train engine force calculation accounts for coupled engines facing in reverse direction