public override void OnPhysicsUpdate() { DateTime atDateTime = _entity.Manager.ManagerSubpulses.StarSysDateTime; if (_orbitDB != null) { var headingVector = OrbitProcessor.InstantaneousOrbitalVelocityVector_m(_orbitDB, atDateTime); var heading = Math.Atan2(headingVector.Y, headingVector.X); Heading = (float)heading; } else if (_newtonMoveDB != null) { Heading = (float)Math.Atan2(_newtonMoveDB.CurrentVector_ms.Y, _newtonMoveDB.CurrentVector_ms.X); } else if (_warpMoveDB != null) { Heading = _warpMoveDB.Heading_Radians; } }