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...
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.
◆ 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
-
◆ NormalizedTargetVelocity
Vector3 Utilities.CameraFollow.NormalizedTargetVelocity |
|
get |
◆ YOffset
float Utilities.CameraFollow.YOffset |
|
getset |
The documentation for this class was generated from the following file: