Table of Contents

Class SimpleCameraFollower

Simple follow script which allows the follower to be offset from the player.

public class SimpleCameraFollower : MonoBehaviour
Inheritance
System.Object
SimpleCameraFollower

Fields

DistanceOffset

Z distance offset from the player.

public float DistanceOffset

Field Value

float

HeightOffset

Height (Y) offset from the player.

public float HeightOffset

Field Value

float

MovementDelayDistance

Delay before starting to follow player position.

public float MovementDelayDistance

Field Value

float

MovementSpeed

Speed at which the object follows the player.

public float MovementSpeed

Field Value

float

RotationDelayAngle

Delay before starting to follow player rotation.

public float RotationDelayAngle

Field Value

float

RotationOffset

Rotation offset from the player.

public Vector3 RotationOffset

Field Value

Vector3

RotationSpeed

Speed at which the object rotates to match the player's head rotation.

public float RotationSpeed

Field Value

float

Methods

LateUpdate()

protected void LateUpdate()

Start()

protected void Start()