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...
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] |
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.
enum FlightCamera.Modes |
FlightCamera.FlightCamera | ( | ) |
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.setModeImmediate | ( | FlightCamera.Modes | m | ) |
|
static |
void FlightCamera.SetNextMode | ( | ) |
void FlightCamera.setTarget | ( | Transform | tgt | ) |
|
static |
FlightCamera.Modes FlightCamera.autoMode |
Camera [] FlightCamera.cameras |
float FlightCamera.cameraWobbleSensitivity |
float FlightCamera.camHdg |
float FlightCamera.camPitch |
Vector3 FlightCamera.endDirection |
|
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 |
|
staticgetset |
You can set this to change the look direction of the in-flight camera (value is in radians).
|
staticget |
|
staticgetset |
You can set this to change the look direction of the in-flight camera (value is in radians).
|
get |
|
staticget |
|
get |