Highroad Engine v1.3
|
3D Camera controller following a single target in perspective More...
Public Member Functions | |
virtual void | Start () |
Lateral speed is zero at start. More... | |
override void | RefreshTargets () |
Refresh the target More... | |
Public Attributes | |
float | Distance = 5.5f |
distance to the target More... | |
float | Height = 2.5f |
height between target and camera More... | |
float | DampingPosition = 0.02f |
damping translation of the camera More... | |
float | DampingSteering = 0.5f |
damping steering lateral translation More... | |
float | SteeringOffset = 5f |
steering translation impact to camera More... | |
float | TargetLookUpOffset = 2f |
camera LookAt target offset 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 | |
override void | CameraUpdate () |
Updates the camera position 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 | |
Transform | _target |
BaseController | _baseController |
Vector3 | currentLateralOffset = Vector3.zero |
Vector3 | _moveVelocityReference |
Vector3 | _targetPosition |
Vector3 | _targetLateralTranslation |
Protected Attributes inherited from MoreMountains.HighroadEngine.CameraController | |
Camera | _camera |
Properties | |
override bool | IsSinglePlayerCamera [get] |
this type of camera can only follow one target 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... | |
3D Camera controller following a single target in perspective
|
protectedvirtual |
Updates the camera position
Implements MoreMountains.HighroadEngine.CameraController.
|
virtual |
Refresh the target
Implements MoreMountains.HighroadEngine.CameraController.
|
virtual |
Lateral speed is zero at start.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
float MoreMountains.HighroadEngine.ThirdPersonCameraController.DampingPosition = 0.02f |
damping translation of the camera
float MoreMountains.HighroadEngine.ThirdPersonCameraController.DampingSteering = 0.5f |
damping steering lateral translation
float MoreMountains.HighroadEngine.ThirdPersonCameraController.Distance = 5.5f |
distance to the target
float MoreMountains.HighroadEngine.ThirdPersonCameraController.Height = 2.5f |
height between target and camera
float MoreMountains.HighroadEngine.ThirdPersonCameraController.SteeringOffset = 5f |
steering translation impact to camera
float MoreMountains.HighroadEngine.ThirdPersonCameraController.TargetLookUpOffset = 2f |
camera LookAt target offset
|
get |
this type of camera can only follow one target