Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Attributes | Properties | List of all members
SpaceNavigator Class Referenceabstract
Inheritance diagram for SpaceNavigator:
SpaceNavigatorNoDevice

Public Member Functions

abstract void Dispose ()
 
abstract Quaternion GetRotation ()
 Sensitivity settings. More...
 
abstract Vector3 GetTranslation ()
 
void ReadSettings ()
 Reads the settings. More...
 
void WriteSettings ()
 Writes the settings. More...
 

Static Public Member Functions

static Quaternion RotationInLocalCoordSys (Transform coordSys)
 
static void SetRotationSensitivity (float newPlayRotSens)
 
static void SetTranslationSensitivity (float newPlayTransSens)
 

Public Attributes

int CurrentGear = 1
 
float PlayRotSens = RotSensDefault
 
float PlayTransSens = TransSensDefault[1]
 
float RotSens = RotSensDefault
 
const float RotSensDefault = 1
 
float RotSensMax = RotSensMaxDefault
 Setting storage keys. More...
 
float RotSensMin = RotSensMinDefault
 
List< float > TransSens = new List<float>(TransSensDefault)
 
List< float > TransSensMax = new List<float>(TransSensMaxDefault)
 
List< float > TransSensMin = new List<float>(TransSensMinDefault)
 

Static Public Attributes

static List< float > TransSensDefault = new List<float> { 50, 1, 0.05f }
 
static List< float > TransSensMaxDefault = new List<float>() { 100, 10, 1 }
 
static List< float > TransSensMinDefault = new List<float>() { 1, 0.1f, 0.01f }
 

Static Protected Attributes

static bool _deviceAvailable
 

Properties

static bool Available [get]
 
static SpaceNavigator Instance [get, set]
 
static bool LockRotationAll [get, set]
 
static bool LockRotationX [get, set]
 
static bool LockRotationY [get, set]
 
static bool LockRotationZ [get, set]
 
static bool LockTranslationAll [get, set]
 
static bool LockTranslationX [get, set]
 Locking can be disabled by the SpaceNavigatorWindow; More...
 
static bool LockTranslationY [get, set]
 
static bool LockTranslationZ [get, set]
 
static Quaternion Rotation [get]
 
static Vector3 Translation [get]
 

Member Function Documentation

abstract void SpaceNavigator.Dispose ( )
pure virtual

Implemented in SpaceNavigatorNoDevice.

abstract Quaternion SpaceNavigator.GetRotation ( )
pure virtual

Sensitivity settings.

Implemented in SpaceNavigatorNoDevice.

abstract Vector3 SpaceNavigator.GetTranslation ( )
pure virtual

Implemented in SpaceNavigatorNoDevice.

void SpaceNavigator.ReadSettings ( )
inline

Reads the settings.

static Quaternion SpaceNavigator.RotationInLocalCoordSys ( Transform  coordSys)
inlinestatic
static void SpaceNavigator.SetRotationSensitivity ( float  newPlayRotSens)
inlinestatic
static void SpaceNavigator.SetTranslationSensitivity ( float  newPlayTransSens)
inlinestatic
void SpaceNavigator.WriteSettings ( )
inline

Writes the settings.

Member Data Documentation

bool SpaceNavigator._deviceAvailable
staticprotected
int SpaceNavigator.CurrentGear = 1
float SpaceNavigator.PlayRotSens = RotSensDefault
float SpaceNavigator.PlayTransSens = TransSensDefault[1]
float SpaceNavigator.RotSens = RotSensDefault
const float SpaceNavigator.RotSensDefault = 1
float SpaceNavigator.RotSensMax = RotSensMaxDefault

Setting storage keys.

float SpaceNavigator.RotSensMin = RotSensMinDefault
List<float> SpaceNavigator.TransSens = new List<float>(TransSensDefault)
List<float> SpaceNavigator.TransSensDefault = new List<float> { 50, 1, 0.05f }
static
List<float> SpaceNavigator.TransSensMax = new List<float>(TransSensMaxDefault)
List<float> SpaceNavigator.TransSensMaxDefault = new List<float>() { 100, 10, 1 }
static
List<float> SpaceNavigator.TransSensMin = new List<float>(TransSensMinDefault)
List<float> SpaceNavigator.TransSensMinDefault = new List<float>() { 1, 0.1f, 0.01f }
static

Property Documentation

bool SpaceNavigator.Available
staticget
SpaceNavigator SpaceNavigator.Instance
staticgetset
bool SpaceNavigator.LockRotationAll
staticgetset
bool SpaceNavigator.LockRotationX
staticgetset
bool SpaceNavigator.LockRotationY
staticgetset
bool SpaceNavigator.LockRotationZ
staticgetset
bool SpaceNavigator.LockTranslationAll
staticgetset
bool SpaceNavigator.LockTranslationX
staticgetset

Locking can be disabled by the SpaceNavigatorWindow;

bool SpaceNavigator.LockTranslationY
staticgetset
bool SpaceNavigator.LockTranslationZ
staticgetset
Quaternion SpaceNavigator.Rotation
staticget
Vector3 SpaceNavigator.Translation
staticget

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