KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Planetarium Class Reference

Probably the most useful function here is Planetarium.GetUniversalTime(). More...

Inheritance diagram for Planetarium:

Classes

struct  ZupVectors
 

Public Member Functions

 Planetarium ()
 

Static Public Member Functions

static bool FrameIsRotating ()
 Presumably, whether the game is currently using a rotating frame for physics (as opposed to an unrotating inertial frame). Below a certain altitude (CelestialBody.inverseRot More...
 
static double GetUniversalTime ()
 The simulation time, in seconds, since this save was started. More...
 
static void SetUniversalTime (double t)
 

Public Attributes

CelestialBody CurrentMainBody
 Presumably, the main body of the active vessel? More...
 
double fixedDeltaTime
 
double inverseRotAngle
 
List< OrbitDriver > orbits
 
bool pause
 
QuaternionD rotation
 
CelestialBody Sun
 The CelestialBody representing the Sun. More...
 
double time
 
double timeScale
 
QuaternionD zUpRotation
 

Static Public Attributes

static Planetarium fetch
 Use this instance to access non-static fields. More...
 
static Planetarium.ZupVectors Zup
 

Properties

static Vector3d forward [get]
 Along with "up" and "right," one of the three vectors defining the fixed celestial reference frame. More...
 
static double InverseRotAngle [get, set]
 
static List< OrbitDriver > Orbits [get]
 
static bool Pause [get]
 
static Vector3d right [get]
 Along with "up" and "forward," one of the three vectors defining the fixed celestial reference frame. The LAN (longitude of the ascending node) of every orbit is defined in reference to Planetarium.right. Specifically, the LAN is the angle between Planetarium.right and the orbit's ascending node, as viewed along Planetarium.up. More...
 
static QuaternionD Rotation [get, set]
 
static double TimeScale [get, set]
 
static Vector3d up [get]
 Along with "right" and "forward," one of the three vectors defining the fixed celestial reference frame. As of 0.23.5, all planet rotation axes are aligned with Planetarium.up. More...
 
static QuaternionD ZupRotation [get, set]
 

Detailed Description

Probably the most useful function here is Planetarium.GetUniversalTime().

Constructor & Destructor Documentation

Planetarium.Planetarium ( )

Member Function Documentation

static bool Planetarium.FrameIsRotating ( )
static

Presumably, whether the game is currently using a rotating frame for physics (as opposed to an unrotating inertial frame). Below a certain altitude (CelestialBody.inverseRot

Returns
static double Planetarium.GetUniversalTime ( )
static

The simulation time, in seconds, since this save was started.

Returns
Universal time, in seconds
static void Planetarium.SetUniversalTime ( double  t)
static

Member Data Documentation

CelestialBody Planetarium.CurrentMainBody

Presumably, the main body of the active vessel?

Planetarium Planetarium.fetch
static

Use this instance to access non-static fields.

double Planetarium.fixedDeltaTime
double Planetarium.inverseRotAngle
List<OrbitDriver> Planetarium.orbits
bool Planetarium.pause
QuaternionD Planetarium.rotation
CelestialBody Planetarium.Sun

The CelestialBody representing the Sun.

double Planetarium.time
double Planetarium.timeScale
Planetarium.ZupVectors Planetarium.Zup
static
QuaternionD Planetarium.zUpRotation

Property Documentation

Vector3d Planetarium.forward
staticget

Along with "up" and "right," one of the three vectors defining the fixed celestial reference frame.

double Planetarium.InverseRotAngle
staticgetset
List<OrbitDriver> Planetarium.Orbits
staticget
bool Planetarium.Pause
staticget
Vector3d Planetarium.right
staticget

Along with "up" and "forward," one of the three vectors defining the fixed celestial reference frame. The LAN (longitude of the ascending node) of every orbit is defined in reference to Planetarium.right. Specifically, the LAN is the angle between Planetarium.right and the orbit's ascending node, as viewed along Planetarium.up.

QuaternionD Planetarium.Rotation
staticgetset
double Planetarium.TimeScale
staticgetset
Vector3d Planetarium.up
staticget

Along with "right" and "forward," one of the three vectors defining the fixed celestial reference frame. As of 0.23.5, all planet rotation axes are aligned with Planetarium.up.

QuaternionD Planetarium.ZupRotation
staticgetset

The documentation for this class was generated from the following file: