Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | List of all members
SpaceCenterCamera2 Class Reference
Inheritance diagram for SpaceCenterCamera2:
IKSPCamera

Public Types

enum  CameraMode { CameraMode.Rover, CameraMode.Overview }
 

Public Member Functions

Transform GetCameraTransform ()
 
float getPitch ()
 
Transform GetPivot ()
 
Quaternion getReferenceFrame ()
 
float getYaw ()
 
float GetZoom ()
 
void OnNavigatorHandoff ()
 
bool OnNavigatorRequestControl ()
 Called before the device takes control of camera input. Return true to allow the device to have control, or false to deny it. More...
 
Func< bool > OnNavigatorTakeOver (Callback onRequestControl)
 Called when the device is about to take control of camera input. Return a method to be used to check whether the camera should receive control again. Also if necessary to get control back immediately, you can call the provided callback parameter. More...
 
void ResetCamera ()
 
void SetCamCoordsFromPosition (Vector3 wPos)
 Set the camera's coordinates (camPitch, camHdg) from the given worldspace position

Parameters
pos
More...
 
void SwitchMode ()
 

Public Attributes

float altitudeInitial = 10f
 
float elevationInitial = 45f
 
float elevationMax = 85f
 
float elevationMin = 0f
 
float elevationSpeed = 90f
 
string initialPositionTransformName
 
KeyCode keyModeSwitch = KeyCode.Space
 
KeyCode keyReset = KeyCode.Backspace
 
CameraMode mode = CameraMode.Overview
 
float mouseSpeed = 90f
 
float movementRadius = 1000f
 
string pqsName
 
float rotateSpeed = 90f
 
float rotationInitial = 90f
 
bool useAlphaNumKeysFactor = true
 
float zoomInitial = 45f
 
float zoomMax = 1000f
 
float zoomMin = 0f
 
float zoomSpeed = 90f
 

Additional Inherited Members

- Properties inherited from IKSPCamera
bool enabled [get]
 

Member Enumeration Documentation

Enumerator
Rover 
Overview 

Member Function Documentation

Transform SpaceCenterCamera2.GetCameraTransform ( )
inline

Implements IKSPCamera.

float SpaceCenterCamera2.getPitch ( )
inline

Implements IKSPCamera.

Transform SpaceCenterCamera2.GetPivot ( )
inline

Implements IKSPCamera.

Quaternion SpaceCenterCamera2.getReferenceFrame ( )
inline

Implements IKSPCamera.

float SpaceCenterCamera2.getYaw ( )
inline

Implements IKSPCamera.

float SpaceCenterCamera2.GetZoom ( )
inline
void SpaceCenterCamera2.OnNavigatorHandoff ( )
inline

Implements IKSPCamera.

bool SpaceCenterCamera2.OnNavigatorRequestControl ( )
inline

Called before the device takes control of camera input. Return true to allow the device to have control, or false to deny it.

Returns

Implements IKSPCamera.

Func<bool> SpaceCenterCamera2.OnNavigatorTakeOver ( Callback  RequestControl)
inline

Called when the device is about to take control of camera input. Return a method to be used to check whether the camera should receive control again. Also if necessary to get control back immediately, you can call the provided callback parameter.

Returns

Implements IKSPCamera.

void SpaceCenterCamera2.ResetCamera ( )
inline
void SpaceCenterCamera2.SetCamCoordsFromPosition ( Vector3  wPos)
inline

Set the camera's coordinates (camPitch, camHdg) from the given worldspace position

Parameters
pos

Implements IKSPCamera.

void SpaceCenterCamera2.SwitchMode ( )
inline

Member Data Documentation

float SpaceCenterCamera2.altitudeInitial = 10f
float SpaceCenterCamera2.elevationInitial = 45f
float SpaceCenterCamera2.elevationMax = 85f
float SpaceCenterCamera2.elevationMin = 0f
float SpaceCenterCamera2.elevationSpeed = 90f
string SpaceCenterCamera2.initialPositionTransformName
KeyCode SpaceCenterCamera2.keyModeSwitch = KeyCode.Space
KeyCode SpaceCenterCamera2.keyReset = KeyCode.Backspace
CameraMode SpaceCenterCamera2.mode = CameraMode.Overview
float SpaceCenterCamera2.mouseSpeed = 90f
float SpaceCenterCamera2.movementRadius = 1000f
string SpaceCenterCamera2.pqsName
float SpaceCenterCamera2.rotateSpeed = 90f
float SpaceCenterCamera2.rotationInitial = 90f
bool SpaceCenterCamera2.useAlphaNumKeysFactor = true
float SpaceCenterCamera2.zoomInitial = 45f
float SpaceCenterCamera2.zoomMax = 1000f
float SpaceCenterCamera2.zoomMin = 0f
float SpaceCenterCamera2.zoomSpeed = 90f

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