github untoldwind/KontrolSystem2 v0.2.1

latest releases: v0.5.9.5, v0.5.9.4, v0.5.9.3...
18 months ago

Minor breaking changes to ksp::orbit::Orbit:

  • orbit.apoapsis and orbit.apoapsis_radius are now Option<float> instead of just float
    • This is because apoapsis of a hyperbolic orbit is pretty much undefined.
    • If you are sure that you are only dealing with elliptic orbits, you can just replace orbit.apoapsis with orbit.apoapsis.value in your code.
    • This might by a small inconvenience, but should be an incentive to check for the eccentricy in your calculations
  • orbit.next_apoapsis_time() and orbit.next_time_of_radius() now also return Option<float> to be consistent
  • orbit.u_t_at_mean_anomaly() has been renamed to orbit.ut_at_mean_anomaly()
  • Removed orbit.absolute_position(ut) as it was misleading. Use orbit.global_position(ut) instead.
  • Fix orientation of the orbit.normal

Other fixes:

  • Fixed access to struct field from async function (issue #47)
  • CRITICAL: Fixed endless loop in IsAssignableFrom lookup (issue #51 ... may crash the game)
  • Prevent the creation of multiple ThrottleManager for the same vessel (issue #37)
  • Minor: Allow whitespace in impl fn (issue #49)
  • Minor: Allow comments in record/tuple type declarations (issue #50)

Don't miss a new KontrolSystem2 release

NewReleases is sending notifications on new releases.