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 | Properties | List of all members
GAPVesselCamera Class Reference
Inheritance diagram for GAPVesselCamera:

Public Types

enum  CameraMode { CameraMode.VesselMode, CameraMode.ObjectMode }
 

Public Member Functions

void FocusPoint (Vector3 point, float minSize, float maxSize)
 Moves the camera focus point More...
 
void FocusVessel (ShipConstruct ship)
 Moves the camera focus point to target a vessel More...
 
void PlaceCamera (Vector3 focusPoint, float dist)
 
void ResetCamera ()
 Reset this camera to the default state More...
 
void Rotate (Vector2 delta)
 Rotates this camera arround the focus pivot More...
 
void Zoom (float delta)
 Zoom in/out this camera towards the focus pivot More...
 

Public Attributes

bool Camera_VAB_Controls = true
 
CameraMode cameraMode = CameraMode.VesselMode
 
float camHdg = 0f
 
float camPitch = 0f
 
EditorBounds editorBounds
 
float initialHeading = 1.265998f
 
float initialHeight = 9f
 
float initialPitch = 0.2859999f
 
float maxDisplaceX = 20f
 
float maxDisplaceZ = 36f
 
float maxDistance = 35f
 
float maxHeight = 30f
 
float maxPitch = 1.6f
 
float maxZoom = -3.0f
 
float minDistance = 1f
 
float minHeight = -30f
 
float minPitch = -1.6f
 
float minZoom = -20.0f
 
float mouseZoomSensitivity = 0.1f
 
Vector3 offset
 
float offsetSensitivity = 0.1f
 
float offsetSensitivityAtMaxDist = 2.0f
 
float offsetSensitivityAtMinDist = 0.5f
 
float orbitSensitivity = 0.05f
 
float scrollHeight = 5f
 
float sharpness = 8f
 
float startDistance = 30f
 
Transform vesselRoot
 
float zoomSensitivity = 1.0f
 

Properties

float Distance [get]
 

Member Enumeration Documentation

Enumerator
VesselMode 
ObjectMode 

Member Function Documentation

void GAPVesselCamera.FocusPoint ( Vector3  point,
float  minSize,
float  maxSize 
)
inline

Moves the camera focus point

Parameters
point
void GAPVesselCamera.FocusVessel ( ShipConstruct  ship)
inline

Moves the camera focus point to target a vessel

Parameters
shipVessel
void GAPVesselCamera.PlaceCamera ( Vector3  focusPoint,
float  dist 
)
inline
void GAPVesselCamera.ResetCamera ( )
inline

Reset this camera to the default state

void GAPVesselCamera.Rotate ( Vector2  delta)
inline

Rotates this camera arround the focus pivot

Parameters
deltaMouse drag delta values
void GAPVesselCamera.Zoom ( float  delta)
inline

Zoom in/out this camera towards the focus pivot

Parameters
deltaAxis value

Member Data Documentation

bool GAPVesselCamera.Camera_VAB_Controls = true
CameraMode GAPVesselCamera.cameraMode = CameraMode.VesselMode
float GAPVesselCamera.camHdg = 0f
float GAPVesselCamera.camPitch = 0f
EditorBounds GAPVesselCamera.editorBounds
float GAPVesselCamera.initialHeading = 1.265998f
float GAPVesselCamera.initialHeight = 9f
float GAPVesselCamera.initialPitch = 0.2859999f
float GAPVesselCamera.maxDisplaceX = 20f
float GAPVesselCamera.maxDisplaceZ = 36f
float GAPVesselCamera.maxDistance = 35f
float GAPVesselCamera.maxHeight = 30f
float GAPVesselCamera.maxPitch = 1.6f
float GAPVesselCamera.maxZoom = -3.0f
float GAPVesselCamera.minDistance = 1f
float GAPVesselCamera.minHeight = -30f
float GAPVesselCamera.minPitch = -1.6f
float GAPVesselCamera.minZoom = -20.0f
float GAPVesselCamera.mouseZoomSensitivity = 0.1f
Vector3 GAPVesselCamera.offset
float GAPVesselCamera.offsetSensitivity = 0.1f
float GAPVesselCamera.offsetSensitivityAtMaxDist = 2.0f
float GAPVesselCamera.offsetSensitivityAtMinDist = 0.5f
float GAPVesselCamera.orbitSensitivity = 0.05f
float GAPVesselCamera.scrollHeight = 5f
float GAPVesselCamera.sharpness = 8f
float GAPVesselCamera.startDistance = 30f
Transform GAPVesselCamera.vesselRoot
float GAPVesselCamera.zoomSensitivity = 1.0f

Property Documentation

float GAPVesselCamera.Distance
get

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