diff --git a/src/CelestialBody.cs b/src/CelestialBody.cs index f910c6b..34eba0c 100644 --- a/src/CelestialBody.cs +++ b/src/CelestialBody.cs @@ -139,10 +139,6 @@ public class CelestialBody /*: MonoBehaviour, ITargetable, IDiscoverable*/ public extern int flightGlobalsIndex { get; set; } public extern string name { get; } /// - /// Describes the orbit of this body around its primary. - /// - public extern Orbit orbit { get; } - /// /// The position of the center of the body, in world coordinates. /// public extern Vector3d position { get; set; } @@ -188,6 +184,7 @@ public class CelestialBody /*: MonoBehaviour, ITargetable, IDiscoverable*/ public extern double GetLongitude(Vector3d worldPos); public extern string GetName(); public extern Vector3 GetObtVelocity(); + /// Obsolete function that throws a NullReferenceException when called. Use GetOrbitDriver() instead. public extern Orbit GetOrbit(); public extern OrbitDriver GetOrbitDriver(); public extern Vector3d getPositionAtUT(double UT);