Ejemplo n.º 1
0
        /// <summary>
        /// Applies the control state
        /// </summary>
        private void ApplyControlState(float percentage)
        {
            var currentFlightState = Lerp(FlightState, Target.FlightState, percentage);

            Vessel?.ctrlState.CopyFrom(currentFlightState);
            Vessel?.FeedInputFeed();

            if (VesselCommon.IsSpectating)
            {
                FlightInputHandler.state.CopyFrom(currentFlightState);
            }
        }