SteerShipToward() public static method

Automatically guides the ship to face a desired orientation
public static SteerShipToward ( Quaternion target, FlightCtrlState c, FlightComputer fc, bool ignoreRoll ) : void
target UnityEngine.Quaternion The desired orientation
c FlightCtrlState The FlightCtrlState for the current vessel.
fc FlightComputer The flight computer carrying out the slew
ignoreRoll bool [optional] to ignore the roll
return void
示例#1
0
 public static void HoldOrientation(FlightCtrlState fs, FlightComputer f, Quaternion target)
 {
     f.Vessel.ActionGroups.SetGroup(KSPActionGroup.SAS, false);
     SteeringHelper.SteerShipToward(target, fs, f);
 }
示例#2
0
 /// <summary>
 /// Single entry point of all Flight Computer orientation holding, including maneuver node.
 /// </summary>
 public static void HoldOrientation(FlightCtrlState fs, FlightComputer f, Quaternion target, bool ignoreRoll = false, bool ignorePitch = false, bool ignoreHeading = false)
 {
     f.Vessel.ActionGroups.SetGroup(KSPActionGroup.SAS, false);
     SteeringHelper.SteerShipToward(target, fs, f, ignoreRoll, ignorePitch, ignoreHeading);
 }