Raymond Maarloeve
Loading...
Searching...
No Matches
CameraFollow Class Reference

Handles the camera movement and positioning to follow a target. Supports smooth transitions and interaction-specific camera behavior. More...

Public Member Functions

void SetTarget (Transform newTarget, bool interacting)
 Sets the target for the camera to follow and specifies whether interaction mode is active.
 

Public Attributes

Transform target
 Transform of the target the camera should follow.
 
float smoothSpeed = 5f
 Speed of the camera's smooth movement.
 
Vector3 normalOffset = new Vector3(0, -10, 0)
 Normal position offset of the camera.
 
Vector3 interactionOffset = new Vector3(0, 1.7f, 1.5f)
 Interaction-specific position offset of the camera.
 
Vector3 interactionRotation = new Vector3(0, 0, 0)
 Interaction-specific rotation of the camera.
 

Static Public Attributes

static CameraFollow Instance
 Singleton instance of the CameraFollow class.
 

Detailed Description

Handles the camera movement and positioning to follow a target. Supports smooth transitions and interaction-specific camera behavior.

Member Function Documentation

◆ SetTarget()

void CameraFollow.SetTarget ( Transform  newTarget,
bool  interacting 
)

Sets the target for the camera to follow and specifies whether interaction mode is active.

Parameters
newTargetThe new target for the camera.
interactingTrue if interaction mode is active, false otherwise.

Member Data Documentation

◆ Instance

CameraFollow CameraFollow.Instance
static

Singleton instance of the CameraFollow class.

◆ interactionOffset

Vector3 CameraFollow.interactionOffset = new Vector3(0, 1.7f, 1.5f)

Interaction-specific position offset of the camera.

◆ interactionRotation

Vector3 CameraFollow.interactionRotation = new Vector3(0, 0, 0)

Interaction-specific rotation of the camera.

◆ normalOffset

Vector3 CameraFollow.normalOffset = new Vector3(0, -10, 0)

Normal position offset of the camera.

◆ smoothSpeed

float CameraFollow.smoothSpeed = 5f

Speed of the camera's smooth movement.

◆ target

Transform CameraFollow.target

Transform of the target the camera should follow.


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