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
SPHCamera Class Reference
Inheritance diagram for SPHCamera:
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 = -3.9f
 
float initialHeight = 5f
 
float initialPitch = 0.3f
 
float maxDisplaceX
 
float maxDisplaceZ
 
float maxDistance = 35f
 
float maxHeight = 50f
 
float maxPitch = 60f
 
float minDistance = 3f
 
float minHeight = 2f
 
float minPitch = -30f
 
float mouseZoomSensitivity = 0.1f
 
Vector3 offset
 
float offsetSensitivityAtMaxDist = 2.0f
 
float offsetSensitivityAtMinDist = 0.5f
 
float orbitSensitivity = 0.05f
 
float scrollHeight = 5f
 
float sharpness = 0.2f
 
Cubemap SPHReflection
 
float startDistance = 30f
 

Properties

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

Member Function Documentation

Transform SPHCamera.GetCameraTransform ( )
inline

Implements IKSPCamera.

float SPHCamera.getPitch ( )
inline

Implements IKSPCamera.

Transform SPHCamera.GetPivot ( )
inline

Implements IKSPCamera.

Quaternion SPHCamera.getReferenceFrame ( )
inline

Implements IKSPCamera.

float SPHCamera.getYaw ( )
inline

Implements IKSPCamera.

void SPHCamera.OnNavigatorHandoff ( )
inline

Implements IKSPCamera.

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

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

Parameters
pos

Implements IKSPCamera.

Member Data Documentation

float SPHCamera.camHdg = 0f
float SPHCamera.camInitialMinDistance = 5.0f
float SPHCamera.camPitch = 0f
float SPHCamera.initialHeading = -3.9f
float SPHCamera.initialHeight = 5f
float SPHCamera.initialPitch = 0.3f
float SPHCamera.maxDisplaceX
float SPHCamera.maxDisplaceZ
float SPHCamera.maxDistance = 35f
float SPHCamera.maxHeight = 50f
float SPHCamera.maxPitch = 60f
float SPHCamera.minDistance = 3f
float SPHCamera.minHeight = 2f
float SPHCamera.minPitch = -30f
float SPHCamera.mouseZoomSensitivity = 0.1f
Vector3 SPHCamera.offset
float SPHCamera.offsetSensitivityAtMaxDist = 2.0f
float SPHCamera.offsetSensitivityAtMinDist = 0.5f
float SPHCamera.orbitSensitivity = 0.05f
float SPHCamera.scrollHeight = 5f
float SPHCamera.sharpness = 0.2f
Cubemap SPHCamera.SPHReflection
float SPHCamera.startDistance = 30f

Property Documentation

float SPHCamera.Distance
get
Vector3 SPHCamera.pivotPosition
get
Quaternion SPHCamera.pivotRotation
get

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