Aerodynamic Objects Core 2.0.0
Loading...
Searching...
No Matches
AerodynamicObjects.Demos.ChaseCamera Class Reference

A follow camera which maintains a fixed heading relative to the target. More...

Inheritance diagram for AerodynamicObjects.Demos.ChaseCamera:

Public Attributes

Transform target
 
float cameraSmoothing = 0.1f
 
float scrollSpeed = 1f
 How fast the camera stand off distance changes when scrolling the mouse. More...
 
float lookRotationSpeed = 0.1f
 Look rotation speed affects how quickly the camera rotates to look at the target. More...
 

Detailed Description

A follow camera which maintains a fixed heading relative to the target.

The heading offset is set on Awake using the relative position of the camera and target. The user can scroll to adjust distance from the target.

Member Data Documentation

◆ cameraSmoothing

float AerodynamicObjects.Demos.ChaseCamera.cameraSmoothing = 0.1f

◆ lookRotationSpeed

float AerodynamicObjects.Demos.ChaseCamera.lookRotationSpeed = 0.1f

Look rotation speed affects how quickly the camera rotates to look at the target.

Higher values will keep the target in the centre of the camera's view.

◆ scrollSpeed

float AerodynamicObjects.Demos.ChaseCamera.scrollSpeed = 1f

How fast the camera stand off distance changes when scrolling the mouse.

◆ target

Transform AerodynamicObjects.Demos.ChaseCamera.target

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