Highroad Engine v1.3
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
MoreMountains.HighroadEngine.ThirdPersonCameraController Class Reference

3D Camera controller following a single target in perspective More...

Inheritance diagram for MoreMountains.HighroadEngine.ThirdPersonCameraController:
MoreMountains.HighroadEngine.CameraController

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...
 

Detailed Description

3D Camera controller following a single target in perspective

Member Function Documentation

◆ CameraUpdate()

override void MoreMountains.HighroadEngine.ThirdPersonCameraController.CameraUpdate ( )
protectedvirtual

Updates the camera position

Implements MoreMountains.HighroadEngine.CameraController.

◆ RefreshTargets()

override void MoreMountains.HighroadEngine.ThirdPersonCameraController.RefreshTargets ( )
virtual

Refresh the target

Implements MoreMountains.HighroadEngine.CameraController.

◆ Start()

virtual void MoreMountains.HighroadEngine.ThirdPersonCameraController.Start ( )
virtual

Lateral speed is zero at start.

Member Data Documentation

◆ _baseController

BaseController MoreMountains.HighroadEngine.ThirdPersonCameraController._baseController
protected

◆ _moveVelocityReference

Vector3 MoreMountains.HighroadEngine.ThirdPersonCameraController._moveVelocityReference
protected

◆ _target

Transform MoreMountains.HighroadEngine.ThirdPersonCameraController._target
protected

◆ _targetLateralTranslation

Vector3 MoreMountains.HighroadEngine.ThirdPersonCameraController._targetLateralTranslation
protected

◆ _targetPosition

Vector3 MoreMountains.HighroadEngine.ThirdPersonCameraController._targetPosition
protected

◆ currentLateralOffset

Vector3 MoreMountains.HighroadEngine.ThirdPersonCameraController.currentLateralOffset = Vector3.zero
protected

◆ DampingPosition

float MoreMountains.HighroadEngine.ThirdPersonCameraController.DampingPosition = 0.02f

damping translation of the camera

◆ DampingSteering

float MoreMountains.HighroadEngine.ThirdPersonCameraController.DampingSteering = 0.5f

damping steering lateral translation

◆ Distance

float MoreMountains.HighroadEngine.ThirdPersonCameraController.Distance = 5.5f

distance to the target

◆ Height

float MoreMountains.HighroadEngine.ThirdPersonCameraController.Height = 2.5f

height between target and camera

◆ SteeringOffset

float MoreMountains.HighroadEngine.ThirdPersonCameraController.SteeringOffset = 5f

steering translation impact to camera

◆ TargetLookUpOffset

float MoreMountains.HighroadEngine.ThirdPersonCameraController.TargetLookUpOffset = 2f

camera LookAt target offset

Property Documentation

◆ IsSinglePlayerCamera

override bool MoreMountains.HighroadEngine.ThirdPersonCameraController.IsSinglePlayerCamera
get

this type of camera can only follow one target


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