Class PlanetViewer
  
  
  
    - Namespace
 - KSP.PlanetViewer
 
  - Assembly
 - Assembly-CSharp.dll
 
   
  
  
  
    public class PlanetViewer : KerbalMonoBehaviour
   
  
    - Inheritance
 
    - 
      
      
      
PlanetViewer
     
  
  
    - Inherited Members
 
    - 
    
    
    
    
    
  
 
  
    - Extension Methods
 
    - 
  
  
  
  
  
  
 
  Constructors
  
  
  PlanetViewer()
  
  
  
  
  
  Fields
  
  InvalidIndexLastUpdate
  
  
  
  
  
    public bool InvalidIndexLastUpdate
   
  Field Value
  
    - bool
 
    
  
  
  KerbalForwardOffset
  
  
  
  
  
    public float KerbalForwardOffset
   
  Field Value
  
    - float
 
    
  
  
  KerbalVerticalOffset
  
  
  
  
  
    public float KerbalVerticalOffset
   
  Field Value
  
    - float
 
    
  
  
  Observing
  
  
  
  
  
  Field Value
  
    - bool
 
    
  
  Properties
  
  
  CamAngle
  
  
  
  
  
    public double CamAngle { get; }
   
  Property Value
  
    - double
 
    
  
  
  
  CamPitch
  
  
  
  
  
    public double CamPitch { get; }
   
  Property Value
  
    - double
 
    
  
  
  
  CelestialBodyIndex
  
  
  
  
  
    public int CelestialBodyIndex { get; set; }
   
  Property Value
  
    - int
 
    
  
  
  
  CelestialBodyNameKeys
  
  
  
  
  
    public string[] CelestialBodyNameKeys { get; }
   
  Property Value
  
    - string[]
 
    
  
  
  
  CelestialBodyNameKeysList
  
  
  
  
  
    public List<string> CelestialBodyNameKeysList { get; }
   
  Property Value
  
    - List<string>
 
    
  
  
  
  CurrentAltitudeGroundLevel
  
  
  
  
  
    public double CurrentAltitudeGroundLevel { get; }
   
  Property Value
  
    - double
 
    
  
  
  
  CurrentAltitudeSeaLevel
  
  
  
  
  
    public double CurrentAltitudeSeaLevel { get; }
   
  Property Value
  
    - double
 
    
  
  
  
  CurrentCelestialBodyNameKey
  
  
  
  
  
    public string CurrentCelestialBodyNameKey { get; }
   
  Property Value
  
    - string
 
    
  
  
  
  CurrentCelestialBodyRotationAngle
  
  
  
  
  
    public double CurrentCelestialBodyRotationAngle { get; }
   
  Property Value
  
    - double
 
    
  
  
  
  CurrentLatitude
  
  
  
  
  
    public double CurrentLatitude { get; }
   
  Property Value
  
    - double
 
    
  
  
  
  CurrentLongitude
  
  
  
  
  
    public double CurrentLongitude { get; }
   
  Property Value
  
    - double
 
    
  
  
  
  
  
  
    public bool IsInputEnabled { get; set; }
   
  Property Value
  
    - bool
 
    
  
  
  
  Observer
  
  
  
  
  
    public UniverseObserver Observer { get; }
   
  Property Value
  
    - UniverseObserver
 
    
  
  
  
  ShowKerbalForScale
  
  
  
  
  
    public bool ShowKerbalForScale { get; set; }
   
  Property Value
  
    - bool
 
    
  
  Methods
  
  
  ChangeAltitude(double)
  
  
  
  
  
    public void ChangeAltitude(double amount)
   
  Parameters
  
    amount double 
    
  
  
  
  ChangeHeading(double)
  
  
  
  
  
    public void ChangeHeading(double amount)
   
  Parameters
  
    amount double 
    
  
  
  
  ChangePitch(float)
  
  
  
  
  
    public void ChangePitch(float amount)
   
  Parameters
  
    amount float 
    
  
  
  
  EnableClouds(bool)
  
  
  
  
  
    public void EnableClouds(bool value)
   
  Parameters
  
    value bool 
    
  
  
  
  Exit()
  
  
  
  
  
  
  
  ExitAndReturnToFlightView()
  
  
  
  
  
    public void ExitAndReturnToFlightView()
   
  
  
  ExitAndReturnToKSC()
  
  
  
  
  
    public void ExitAndReturnToKSC()
   
  
  
  ForceRotationAngle(string, double)
  
  
  
  
  
    public void ForceRotationAngle(string guid, double targetAngle)
   
  Parameters
  
    guid string 
    
    targetAngle double 
    
  
  
  
  GetCelestialBodyComponent(string)
  
  
  
  
  
    public CelestialBodyComponent GetCelestialBodyComponent(string cbNameKey)
   
  Parameters
  
    cbNameKey string 
    
  
  Returns
  
    - CelestialBodyComponent
 
    
  
  
  
  GetCelestialBodyRadius(string)
  
  
  
  
  
    public double GetCelestialBodyRadius(string cbNameKey)
   
  Parameters
  
    cbNameKey string 
    
  
  Returns
  
    - double
 
    
  
  
  
  GetCelestialBodySimObject(string)
  
  
  
  
  
    public SimulationObjectModel GetCelestialBodySimObject(string cbNameKey)
   
  Parameters
  
    cbNameKey string 
    
  
  Returns
  
    - SimulationObjectModel
 
    
  
  
  
  GetHeading()
  
  
  
  
  
    public double GetHeading()
   
  Returns
  
    - double
 
    
  
  
  
  GetSpeed()
  
  
  
  
  
  Returns
  
    - double
 
    
  
  
  
  GetTerrainAltitudeFromCenter(string, double, double)
  
  
  
  
  
    public double GetTerrainAltitudeFromCenter(string guid, double latitude, double longitude)
   
  Parameters
  
    guid string 
    
    latitude double 
    
    longitude double 
    
  
  Returns
  
    - double
 
    
  
  
  
  GetTerrainAltitudeFromCenter(string, Vector3d)
  
  
  
  
  
    public double GetTerrainAltitudeFromCenter(string guid, Vector3d radialVector)
   
  Parameters
  
    guid string 
    
    radialVector Vector3d 
    
  
  Returns
  
    - double
 
    
  
  
  
  Init()
  
  
  
  
  
  
  
  IsEnabledClouds()
  
  
  
  
  
    public bool IsEnabledClouds()
   
  Returns
  
    - bool
 
    
  
  
  
  IsValidInputCelestialBody(int)
  
  
  
  
  
    public bool IsValidInputCelestialBody(int index)
   
  Parameters
  
    index int 
    
  
  Returns
  
    - bool
 
    
  
  
  
  OffsetCelestialBodyRotationAngle(string, double)
  
  
  
  
  
    public void OffsetCelestialBodyRotationAngle(string guid, double angle)
   
  Parameters
  
    guid string 
    
    angle double 
    
  
  
  
  OnDestroy()
  
  
  
  
  
  
  
  OnDisable()
  
  
  
  
  
  
  
  ResetAllCelestialBodyRotationOffsets()
  
  
  
  
  
    public static void ResetAllCelestialBodyRotationOffsets()
   
  
  
  ResetCelestialRotationOffset(string)
  
  
  
  
  
    public void ResetCelestialRotationOffset(string guid)
   
  Parameters
  
    guid string 
    
  
  
  
  
  
  
    public void SetPosition(int bodyIndex, double latitude, double longitude, AltitudeMode altitudeMode, double altitude, double camAngle = 0, double camPitch = 89)
   
  Parameters
  
    bodyIndex int 
    
    latitude double 
    
    longitude double 
    
    altitudeMode AltitudeMode 
    
    altitude double 
    
    camAngle double 
    
    camPitch double 
    
  
  
  
  Translate(double, double)
  
  
  
  
  
    public void Translate(double x, double y)
   
  Parameters
  
    x double 
    
    y double