Beispiel #1
0
        /// <summary>
        /// Called by the framework for each physics tick.
        /// </summary>
        public void FixedUpdate()
        {
            if (VesselMode)
            {
                // Check for changes in vessel's orbit

                if (OrbitChanged())
                {
                    OnOrbitChanged();
                    prevOrbit = new OrbitModel(FlightGlobals.ActiveVessel.orbit);
                }

                if (TargetChanged())
                {
                    OnTargetChanged();
                    prevTarget = FlightGlobals.fetch.VesselTarget;
                }

                // Show/hide the maneuver icons when gaining/losing control
                if (FlightGlobals.ActiveVessel.CurrentControlLevel != prevControl)
                {
                    ResetView(false);
                    prevControl = FlightGlobals.ActiveVessel.CurrentControlLevel;
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// Called by the framework for each physics tick.
        /// </summary>
        public void FixedUpdate()
        {
            if (VesselMode)
            {
                // Check for changes in vessel's orbit

                if (OrbitChanged())
                {
                    OnOrbitChanged();
                    prevOrbit = new OrbitModel(FlightGlobals.ActiveVessel.orbit);
                }

                if (TargetChanged())
                {
                    OnTargetChanged();
                    prevTarget = FlightGlobals.fetch.VesselTarget;
                }
            }
        }