Elastic Collisions


Now trains bounce

Tweaks
a month ago
2.0
177
Transportation Trains

Changelog

Version: 0.0.1
Date: 2025.07.19
  Changes:
    - Mod Created
    - Setting Created "Collision Damage Speed". Alters the max speed, after which colliding trains will deal damage to each other
    - [Previous] Returned Train-Friction to 0.001, as it was in past versions. This will be a feature of Elastic Collisions, since it enhances the feature
    - [Previous] When Trains collide and bounce, they will only take damage if their relative speed differs by more than 20 km per hour
  Optimizations:
    - [Previous] Clear train collisions from the global table tracking them after two ticks. The record is only required for one tick, to prevent train cars from locking up. I am keeping it as a global table for the exceptionally rare edge case that a train car collides on the tick that the game is saved on
    - [Previous] Much better relative train orientation implementation for elastic collisions. Will no longer need to track train vectors on a global table
  Bugfixes:
    - [Previous] Previous version caused train collisions to break
    - [Previous] Removing a train that had recently collided would crash the game
    - [Previous] Script would occasionally try to change an automatic train's speed after a collision, crashing the game
  Major Features:
    - [Previous] Initial release, introduces active rails and train collisions