Minor breaking changes to ksp::orbit::Orbit
:
orbit.apoapsis
andorbit.apoapsis_radius
are nowOption<float>
instead of justfloat
- 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
withorbit.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()
andorbit.next_time_of_radius()
now also returnOption<float>
to be consistentorbit.u_t_at_mean_anomaly()
has been renamed toorbit.ut_at_mean_anomaly()
- Removed
orbit.absolute_position(ut)
as it was misleading. Useorbit.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)