Unity and Flutter apps Home Page
Work to create apps for generating revenue
Loading...
Searching...
No Matches
Utilities.CameraFollow Class Reference

Gets the main Camera to follow the _cameraTarget at a specific distance. It also uses waypoints to determine how to follow the _cameraTarget in a direction that points to the next waypoint. More...

Inheritance diagram for Utilities.CameraFollow:

Public Member Functions

void OnEnable ()
 This sets up s subscription to the state of the Player entity as it changes And a subscription to current waypoint as it changes.
void OnDisable ()
void UpdateCurrentWaypoint (WaypointManager pWaypointManager)
 Updates the waypoint to the new waypoint when previous waypoint is reached.
void MoveCamera (Vector2 input2D)

Properties

Vector3 NormalizedTargetVelocity [get]
float YOffset [get, set]

Detailed Description

Gets the main Camera to follow the _cameraTarget at a specific distance. It also uses waypoints to determine how to follow the _cameraTarget in a direction that points to the next waypoint.

Member Function Documentation

◆ MoveCamera()

void Utilities.CameraFollow.MoveCamera ( Vector2 input2D)

◆ OnDisable()

void Utilities.CameraFollow.OnDisable ( )

◆ OnEnable()

void Utilities.CameraFollow.OnEnable ( )

This sets up s subscription to the state of the Player entity as it changes And a subscription to current waypoint as it changes.

◆ UpdateCurrentWaypoint()

void Utilities.CameraFollow.UpdateCurrentWaypoint ( WaypointManager pWaypointManager)

Updates the waypoint to the new waypoint when previous waypoint is reached.

Parameters
pWaypointManager

Property Documentation

◆ NormalizedTargetVelocity

Vector3 Utilities.CameraFollow.NormalizedTargetVelocity
get

◆ YOffset

float Utilities.CameraFollow.YOffset
getset

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