A third-person camera controller class. More...
Public Member Functions | |
void | MoveToStart () |
Moves the camera to its starting position. | |
Public Attributes | |
GameObject | target |
The object the camera should track. | |
Vector3 | offset |
The offset from this object to position the camera. | |
Vector3 | center |
The center to which the camera should focus, local to the target. | |
bool | align = true |
Whether to align the camera to the object's orientation. | |
float | warpScale = 1 |
The amount the field of view is affected by speed. | |
float | maxWarp = 15 |
Maximum increase in field of view. | |
float | wallAvoid = 0.5f |
The distance from walls the camera should try to keep. | |
int | forceFrameRate = 0 |
If set the clipping plane is pulled forward until the target frame rate is reached. | |
Static Public Attributes | |
static bool | Profile = false |
A third-person camera controller class.
void CameraController.MoveToStart | ( | ) |
Moves the camera to its starting position.
bool CameraController.align = true |
Whether to align the camera to the object's orientation.
Vector3 CameraController.center |
The center to which the camera should focus, local to the target.
int CameraController.forceFrameRate = 0 |
If set the clipping plane is pulled forward until the target frame rate is reached.
More of a debugging tool than a practical option
float CameraController.maxWarp = 15 |
Maximum increase in field of view.
Vector3 CameraController.offset |
The offset from this object to position the camera.
GameObject CameraController.target |
The object the camera should track.
float CameraController.wallAvoid = 0.5f |
The distance from walls the camera should try to keep.
float CameraController.warpScale = 1 |
The amount the field of view is affected by speed.