90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

This library allows you to perform the following operations:

  • Update the wheel angle of a train and store it, taking into account the speed and direction of the train.
  • Track the braking and acceleration of a train by comparing the current speed with the previous one.
  • Determine the direction in which a train is turning, based on the change in the rotation of the car.
  • Load parted models for a train, setting the rendering type for each model and applying a UV mirror transformation if necessary.
  • Calculate the rolling and rocking of a train's cars, depending on the speed, turning angle, and mass.

The library also provides a set of utility functions for calculating smooth cubic interpolation, "pseudo-sine" calculation, vector operations, and additional functions for playing sounds.


Project members

HarryTheCat

Member

Details

Licensed CC-BY-SA-4.0
Published 5 months ago
Updated 5 months ago