public static SteerShipToward ( |
||
target | The desired orientation | |
c | FlightCtrlState | The FlightCtrlState for the current vessel. |
fc | The flight computer carrying out the slew | |
ignoreRoll | bool | [optional] to ignore the roll |
return | void |
public static void HoldOrientation(FlightCtrlState fs, FlightComputer f, Quaternion target) { f.Vessel.ActionGroups.SetGroup(KSPActionGroup.SAS, false); SteeringHelper.SteerShipToward(target, fs, f); }
/// <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); }