|
Highroad Engine v1.3
|
Camera controller following a target or a group of targets with an orthographic view. More...
Public Member Functions | |
| override void | RefreshTargets () |
| Never called More... | |
Public Attributes | |
| bool | FollowBotPlayers |
| If set to true, camera will follow humans and bot players on the track. More... | |
| float | DampTime = 0.2f |
| the time (in seconds) before the camera starts to focus on the targets. Allows a smooth follow effect More... | |
| float | SingleDampTime = 1f |
| the time (in seconds) it takes the camera to focus when the target is a single vehicle More... | |
| float | ScreenEdgeSize = 4f |
| the space added around the rectangle made by two most distant cars More... | |
| float | CameraMinimalSize = 6.5f |
| the maximal zoom value More... | |
| float | CameraMaximalSingleSize = 6.5f |
| Minimal zoom size. More... | |
| float | OffsetSingleCar = 1f |
| Acceleration offset.The bigger the value, the more ahead the camera will be when car is racing. More... | |
| float | ZoomSingleCar = 2f |
| Multiplied by vehicle speed to change zoom of the camera. More... | |
Public Attributes inherited from MoreMountains.HighroadEngine.CameraController | |
| UpdateType | UpdateMode |
| Transform[] | HumanPlayers |
| List of human players. More... | |
| Transform[] | BotPlayers |
| List of bot players. More... | |
Protected Member Functions | |
| virtual float | CorrectDampTime () |
| Return Damp Time depending on a single target or more More... | |
| override void | CameraUpdate () |
| Camera position update More... | |
| virtual void | EvaluatePosition () |
| Moves the camera More... | |
| virtual void | EvaluateAveragePosition () |
| Finds the average position. More... | |
| virtual void | EvaluateSize () |
| Zoom the camera More... | |
| virtual float | EvaluateNewSize () |
| Finds the required size of the zoom. More... | |
Protected Member Functions inherited from MoreMountains.HighroadEngine.CameraController | |
| virtual void | Awake () |
| Initializes the camera gameobject More... | |
| virtual void | Update () |
| Unity Update More... | |
| virtual void | LateUpdate () |
| Unity LateUpdate More... | |
| virtual void | FixedUpdate () |
| Unity FixedUpdate More... | |
Protected Attributes | |
| float | _zoomDampSpeed |
| Vector3 | _moveVelocityReference |
| Vector3 | _cameraTargetPosition |
| GameObject | _singleTarget |
Protected Attributes inherited from MoreMountains.HighroadEngine.CameraController | |
| Camera | _camera |
Properties | |
| override bool | IsSinglePlayerCamera [get] |
| Determines if this camera can be used with multiple targets or a single one More... | |
Properties inherited from MoreMountains.HighroadEngine.CameraController | |
| abstract bool | IsSinglePlayerCamera [get] |
| bool | GameHasStarted [getset] |
| Gets or sets a value indicating whether this game has started. More... | |
Additional Inherited Members | |
Public Types inherited from MoreMountains.HighroadEngine.CameraController | |
| enum | UpdateType { FixedUpdate , LateUpdate , Update } |
| Define when camera movement is done. More... | |
Camera controller following a target or a group of targets with an orthographic view.
|
protectedvirtual |
Camera position update
Implements MoreMountains.HighroadEngine.CameraController.
|
protectedvirtual |
Return Damp Time depending on a single target or more
|
protectedvirtual |
Finds the average position.
|
protectedvirtual |
Finds the required size of the zoom.
|
protectedvirtual |
Moves the camera
|
protectedvirtual |
Zoom the camera
|
virtual |
Never called
Implements MoreMountains.HighroadEngine.CameraController.
|
protected |
|
protected |
|
protected |
|
protected |
| float MoreMountains.HighroadEngine.IsometricCameraController.CameraMaximalSingleSize = 6.5f |
Minimal zoom size.
| float MoreMountains.HighroadEngine.IsometricCameraController.CameraMinimalSize = 6.5f |
the maximal zoom value
| float MoreMountains.HighroadEngine.IsometricCameraController.DampTime = 0.2f |
the time (in seconds) before the camera starts to focus on the targets. Allows a smooth follow effect
| bool MoreMountains.HighroadEngine.IsometricCameraController.FollowBotPlayers |
If set to true, camera will follow humans and bot players on the track.
| float MoreMountains.HighroadEngine.IsometricCameraController.OffsetSingleCar = 1f |
Acceleration offset.The bigger the value, the more ahead the camera will be when car is racing.
| float MoreMountains.HighroadEngine.IsometricCameraController.ScreenEdgeSize = 4f |
the space added around the rectangle made by two most distant cars
| float MoreMountains.HighroadEngine.IsometricCameraController.SingleDampTime = 1f |
the time (in seconds) it takes the camera to focus when the target is a single vehicle
| float MoreMountains.HighroadEngine.IsometricCameraController.ZoomSingleCar = 2f |
Multiplied by vehicle speed to change zoom of the camera.
|
get |
Determines if this camera can be used with multiple targets or a single one
true if this instance is a single player camera; otherwise, false.