GetPlannedDirection() public static method

public static GetPlannedDirection ( ) : Vector3
return Vector3
Exemplo n.º 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));
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public static Vector3 plannedDirection()
 {
     return(NavBallOverlay.GetPlannedDirection());
 }