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

A camera parallel to the target. The car's distance is parametrable. A Mouse mode allows for moving the target point by drag and drop in the game scene More...

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

Public Member Functions

virtual void UpdateMouseController ()
 Updates camera values in mouse controller mode More...
 
override void RefreshTargets ()
 Refresh the target More...
 

Public Attributes

bool MouseController
 Whether or not mouse mode is active. More...
 
float DragSpeed = 2
 the camera's movement speed More...
 
float Height = 35f
 the height of the camera relative to its target More...
 
float XOffset = 0f
 x distance between camera and target More...
 
float ZOffset = -35f
 z distance between camera and target 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 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

Vector3 dragOrigin
 
Transform _target
 
- 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

A camera parallel to the target. The car's distance is parametrable. A Mouse mode allows for moving the target point by drag and drop in the game scene

Member Function Documentation

◆ CameraUpdate()

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

Updates camera position

Implements MoreMountains.HighroadEngine.CameraController.

◆ RefreshTargets()

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

Refresh the target

Implements MoreMountains.HighroadEngine.CameraController.

◆ UpdateMouseController()

virtual void MoreMountains.HighroadEngine.ParallelCamera.UpdateMouseController ( )
virtual

Updates camera values in mouse controller mode

Member Data Documentation

◆ _target

Transform MoreMountains.HighroadEngine.ParallelCamera._target
protected

◆ dragOrigin

Vector3 MoreMountains.HighroadEngine.ParallelCamera.dragOrigin
protected

◆ DragSpeed

float MoreMountains.HighroadEngine.ParallelCamera.DragSpeed = 2

the camera's movement speed

◆ Height

float MoreMountains.HighroadEngine.ParallelCamera.Height = 35f

the height of the camera relative to its target

◆ MouseController

bool MoreMountains.HighroadEngine.ParallelCamera.MouseController

Whether or not mouse mode is active.

◆ XOffset

float MoreMountains.HighroadEngine.ParallelCamera.XOffset = 0f

x distance between camera and target

◆ ZOffset

float MoreMountains.HighroadEngine.ParallelCamera.ZOffset = -35f

z distance between camera and target

Property Documentation

◆ IsSinglePlayerCamera

override bool MoreMountains.HighroadEngine.ParallelCamera.IsSinglePlayerCamera
get

this type of camera can only follow one target


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