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

This class is related to control of the main camera used in the flight scene. Its transform is the parent of the actual Camera objects. More...

Inheritance diagram for FlightCamera:

Public Types

enum  Modes { Modes.AUTO = 0, Modes.FREE = 1, Modes.ORBITAL = 2, Modes.CHASE = 3 }
 

Public Member Functions

 FlightCamera ()
 
void ActivateUpdate ()
 Enables mouse control of the camera. More...
 
void DeactivateUpdate ()
 Disables mouse control of the camera. More...
 
void DisableCamera ()
 
void EnableCamera ()
 
void ResetFoV ()
 
void SetDistance (float dist)
 
void SetDistanceImmediate (float dist)
 
void SetFoV ()
 
void SetFoV (float fov)
 
void setMode (FlightCamera.Modes m)
 
void setModeImmediate (FlightCamera.Modes m)
 
void SetNextMode ()
 
void setTarget (Transform tgt)
 

Static Public Member Functions

static void SetMode (FlightCamera.Modes m)
 
static void SetModeImmediate (FlightCamera.Modes m)
 
static void SetTarget (Transform tgt)
 

Public Attributes

FlightCamera.Modes autoMode
 
Camera[] cameras
 
float cameraWobbleSensitivity
 
float camHdg
 
float camPitch
 
Vector3 endDirection
 
FoRModes FoRMode
 
float fovDefault
 
float maxDistance
 
float maxPitch
 
float minDistance
 
float minHeight
 
float minHeightAtMaxDist
 
float minHeightAtMinDist
 
float minPitch
 
FlightCamera.Modes mode
 
GUIStyle modeReadoutStyle
 
float orbitSensitivity
 
float orientationSharpness
 
float pivotTranslateSharpness
 
float sharpness
 
float startDistance
 
Vector3 targetDirection
 
bool updateActive
 
float zoomScaleFactor
 

Static Public Attributes

static FlightCamera fetch
 Returns the singleton FlightCamera object. More...
 

Properties

static float CamHdg [get, set]
 You can set this to change the look direction of the in-flight camera (value is in radians). More...
 
static int CamMode [get]
 
static float CamPitch [get, set]
 You can set this to change the look direction of the in-flight camera (value is in radians). More...
 
float Distance [get]
 
static FoRModes FrameOfReferenceMode [get]
 
Quaternion pivotRotation [get]
 

Detailed Description

This class is related to control of the main camera used in the flight scene. Its transform is the parent of the actual Camera objects.

Member Enumeration Documentation

Enumerator
AUTO 
FREE 
ORBITAL 
CHASE 

Constructor & Destructor Documentation

FlightCamera.FlightCamera ( )

Member Function Documentation

void FlightCamera.ActivateUpdate ( )

Enables mouse control of the camera.

void FlightCamera.DeactivateUpdate ( )

Disables mouse control of the camera.

void FlightCamera.DisableCamera ( )
void FlightCamera.EnableCamera ( )
void FlightCamera.ResetFoV ( )
void FlightCamera.SetDistance ( float  dist)
void FlightCamera.SetDistanceImmediate ( float  dist)
void FlightCamera.SetFoV ( )
void FlightCamera.SetFoV ( float  fov)
void FlightCamera.setMode ( FlightCamera.Modes  m)
static void FlightCamera.SetMode ( FlightCamera.Modes  m)
static
void FlightCamera.setModeImmediate ( FlightCamera.Modes  m)
static void FlightCamera.SetModeImmediate ( FlightCamera.Modes  m)
static
void FlightCamera.SetNextMode ( )
void FlightCamera.setTarget ( Transform  tgt)
static void FlightCamera.SetTarget ( Transform  tgt)
static

Member Data Documentation

FlightCamera.Modes FlightCamera.autoMode
Camera [] FlightCamera.cameras
float FlightCamera.cameraWobbleSensitivity
float FlightCamera.camHdg
float FlightCamera.camPitch
Vector3 FlightCamera.endDirection
FlightCamera FlightCamera.fetch
static

Returns the singleton FlightCamera object.

FoRModes FlightCamera.FoRMode
float FlightCamera.fovDefault
float FlightCamera.maxDistance
float FlightCamera.maxPitch
float FlightCamera.minDistance
float FlightCamera.minHeight
float FlightCamera.minHeightAtMaxDist
float FlightCamera.minHeightAtMinDist
float FlightCamera.minPitch
FlightCamera.Modes FlightCamera.mode
GUIStyle FlightCamera.modeReadoutStyle
float FlightCamera.orbitSensitivity
float FlightCamera.orientationSharpness
float FlightCamera.pivotTranslateSharpness
float FlightCamera.sharpness
float FlightCamera.startDistance
Vector3 FlightCamera.targetDirection
bool FlightCamera.updateActive
float FlightCamera.zoomScaleFactor

Property Documentation

float FlightCamera.CamHdg
staticgetset

You can set this to change the look direction of the in-flight camera (value is in radians).

int FlightCamera.CamMode
staticget
float FlightCamera.CamPitch
staticgetset

You can set this to change the look direction of the in-flight camera (value is in radians).

float FlightCamera.Distance
get
FoRModes FlightCamera.FrameOfReferenceMode
staticget
Quaternion FlightCamera.pivotRotation
get

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