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

Public Member Functions

Transform GetCameraTransform ()
 
float getPitch ()
 
Transform GetPivot ()
 
Quaternion getReferenceFrame ()
 
float getYaw ()
 
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...
 
System.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 PlaceCamera (Vector3 focusPoint, float dist)
 
void ResetCamera ()
 
void SetCamCoordsFromPosition (Vector3 wPos)
 Set the camera's coordinates (camPitch, camHdg) from the given worldspace position

Parameters
pos
More...
 

Public Attributes

float camHdg = 0f
 
float camInitialMinDistance = 5.0f
 
float camPitch = 0f
 
float initialHeading = 1.265998f
 
float initialHeight = 9f
 
float initialPitch = 0.2859999f
 
float maxDistance = 35f
 
float maxHeight = 50f
 
float maxPitch = 60f
 
float minDistance = 3f
 
float minHeight = 2f
 
float minPitch = -30f
 
float mouseZoomSensitivity = 0.1f
 
float offsetSensitivity = 0.1f
 
float orbitSensitivity = 0.05f
 
float scrollHeight = 5f
 
float sharpness = 0.2f
 
float startDistance = 30f
 
Cubemap VABReflection
 

Properties

float Distance [get]
 
Quaternion pivotRotation [get]
 
- Properties inherited from IKSPCamera
bool enabled [get]
 

Member Function Documentation

Transform VABCamera.GetCameraTransform ( )
inline

Implements IKSPCamera.

float VABCamera.getPitch ( )
inline

Implements IKSPCamera.

Transform VABCamera.GetPivot ( )
inline

Implements IKSPCamera.

Quaternion VABCamera.getReferenceFrame ( )
inline

Implements IKSPCamera.

float VABCamera.getYaw ( )
inline

Implements IKSPCamera.

void VABCamera.OnNavigatorHandoff ( )
inline

Implements IKSPCamera.

bool VABCamera.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.

System.Func<bool> VABCamera.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 VABCamera.PlaceCamera ( Vector3  focusPoint,
float  dist 
)
inline
void VABCamera.ResetCamera ( )
inline
void VABCamera.SetCamCoordsFromPosition ( Vector3  wPos)
inline

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

Parameters
pos

Implements IKSPCamera.

Member Data Documentation

float VABCamera.camHdg = 0f
float VABCamera.camInitialMinDistance = 5.0f
float VABCamera.camPitch = 0f
float VABCamera.initialHeading = 1.265998f
float VABCamera.initialHeight = 9f
float VABCamera.initialPitch = 0.2859999f
float VABCamera.maxDistance = 35f
float VABCamera.maxHeight = 50f
float VABCamera.maxPitch = 60f
float VABCamera.minDistance = 3f
float VABCamera.minHeight = 2f
float VABCamera.minPitch = -30f
float VABCamera.mouseZoomSensitivity = 0.1f
float VABCamera.offsetSensitivity = 0.1f
float VABCamera.orbitSensitivity = 0.05f
float VABCamera.scrollHeight = 5f
float VABCamera.sharpness = 0.2f
float VABCamera.startDistance = 30f
Cubemap VABCamera.VABReflection

Property Documentation

float VABCamera.Distance
get
Quaternion VABCamera.pivotRotation
get

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