GetPlannedDirection() public static méthode

public static GetPlannedDirection ( ) : Vector3
Résultat Vector3
Exemple #1
0
 public static Tuple <float, float, float> PlannedDirection()
 {
     if (FlightGlobals.ActiveVessel != null && Trajectory.Target.Body != null)
     {
         return(new Tuple <float, float, float>(NavBallOverlay.GetPlannedDirection().x, NavBallOverlay.GetPlannedDirection().y, NavBallOverlay.GetPlannedDirection().z));
     }
     return(new Tuple <float, float, float>(0, 0, 0));
 }
Exemple #2
0
 /// <summary>
 /// Returns the planned direction or Null if no active vessel or set target.
 /// </summary>
 public static Vector3?PlannedDirection()
 {
     if (FlightGlobals.ActiveVessel != null && Trajectory.Target.Body != null)
     {
         return(NavBallOverlay.GetPlannedDirection());
     }
     return(null);
 }
Exemple #3
0
 public static Vector3 plannedDirection()
 {
     return(NavBallOverlay.GetPlannedDirection());
 }