Momentum

by DataCpt

Train, cars and other vehicles violently transfer their momentum to the player on collision! Persists through death! Configurable.

Content
10 days ago
2.0
554
Transportation Trains Combat Character Enemies

Changelog

Version: 1.1.2
Date: 2025.12.03
  Features:
    - Improved drag calculations.
  Optimizations:
    - Improved runtime performance.
  Info:
    - Added optional dependency ShieldFX to highlight momentum difference.
Version: 1.1.1
Date: 2025.10.20
  Features:
    - Improved support for reversing vehicles.
    - Improved bumper car collision momentum calculations. However rotated vehicles do skip the expanding hitbox logic as it is too performance intensive.
  Bugfixes:
    - Fixed momentum causing slight drifts.
Version: 1.1.0
Date: 2025.10.10
  Major Features:
    - Added momentum based collisions with biters. Can be disabled in settings.
    - Added my first achievement.
    - Vehicles hit flying characters. Compatible with Mech Armor! Can be disabled in settings.
    - Collision momentum applies to cars, including from other cars. Bumper cars technically possible!
  Features:
    - Added a failsafe to prevent getting stranded out of playable terrain.
    - Added a setting that removes the damage calculation limit set by the maximum speed.
    - Added a setting to make trains more powerful.
    - Added a setting to have vehicles keep more of their momentum.
    - Added a setting to increase vehicles' impact resistances.
    - Added a setting to increase armours' impact resistances.
  Changes:
    - Increased the default momentum multiplier setting.
    - Increased the default maximum speed multiplier setting.
    - Capped the speed multiplier settings. It was crashing Steam.
    - Decreased the minimum maximum speed multiplier settings.
  Bugfixes:
    - Fixed an issue where if the train was braking when it hit you, it could incorrectly calculate the momentum. 
  Info:
    - Bumped version requirement for data-utils.
Version: 1.0.2
Date: 2025.08.17
  Features:
    - Improved collision behaviour at ludicrous speeds.
    - High speed collisions now check objects in the order of their proximity to the player.
  Optimizations:
    - Improved runtime performance.
  Info:
    - Bumped version requirement for data-utils.
Version: 1.0.1
Date: 2025.05.06
  Features:
    - Added a setting to customise the collision damage dealt to the player.
    - Added a setting to customise the damage dealt to things the player bodies collide with.
    - Added a setting to set the maximum speed per tick of the player bodies.
  Bugfixes:
    - Potentially fixed a crash for collisions with non-objects(?). Credit to @naiad.
Version: 1.0.0
Date: 2025.04.27
  Major Features:
    - Added support for cars, tanks and other modded vehicles. 
    - Added collision damage to any unit your flying body hits.
    - Your body will now fly through multiple entities if you are hit hard enough, dealing their hp in damage and slowing you. Corpses will not take damage.
  Features:
    - Your body will now slide towards the final entity you collide into if you do not destroy it.
    - Added a maximum travel distance per tick that doesn't impact maximum travel distance.
    - Added velocity rules for hitbox enlargement.
  Minor Features:
    - Added a minimum hitbox size to improved edge case collision detection.
    - Improved error handling.
  Optimizations:
    - Improved smoothness and accuracy of momentum calculations.
  Changes:
    - Increased default momentum setting to 1.5.
  Bugfixes:
    - Fixed momentum direction when being hit by reversing locomotives and wagons.
    - Fixed getting stuck in some objects when sliding.
    - Fixed getting stuck in trains.
  Info:
    - Added an icon.
    - Bumped version requirement for data-utils.
Version: 0.9.1
Date: 2025.04.19
  Major Features:
    - Added support for corpses. Now you can watch your body slide away after any train related incident.
  Optimizations:
    - Improved runtime performance impact.
Version: 0.9.0
Date: 2025.04.19
  Major Features:
    - Train collisions with players now accelerate the player backwards.
    - Working collisions. If you hit a solid object you take extra damage based on the current speed.
    - Has a setting to multiply the collision momentum. No restrictions.
  Info:
    - Initial public release.
  Locale:
    - Basic en locale support.