Skip to content
CRUSHFORMV1.1.0
GET IT ON FAB

REFERENCESTRUCTS AND ENUMS

FCFVehicleChaseCameraTuning

MODULECrushformCameraINCLUDECFVehicleChaseCameraMath.h

Tuning of the vehicle chase camera: angles in degrees, speeds in cm/s, rates in 1/s.

Properties

float MinPitch = -60.f

Lowest arm pitch: the camera at its highest, looking down at the car.

Default
-60.f
Category
Orbit
float MaxPitch = 10.f

Highest arm pitch: the camera at its lowest. Keep it where the camera stays above the ground at the arm's length.

Default
10.f
Category
Orbit
float DefaultPitch = 0.f

Pitch the camera starts at and eases back to while following; held to the limits above.

Default
0.f
Category
Orbit
float FollowDelay = 1.5f

Seconds without a look (look input that reaches Look Threshold) before the camera starts to follow the car.

Default
1.5f
Category
Follow
float LookThreshold = 2.f

Look input counts as a look, which holds the camera and restarts the follow delay, once it has turned the view this far within about a quarter of a second. Smaller jitter (a mouse sensor's noise, a stick resting just past its dead zone) still turns the view but leaves the follow on. 0 counts any look input.

Default
2.f
Category
Follow
float FollowStartSpeed = 50.f

Below this planar speed the camera does not follow at all: it stays where it is, so a standing car does not turn the view behind its nose. The follow delay keeps running below this speed, so once it is over the follow starts the moment the car reaches it. 0 follows a standing car too.

Default
50.f
Category
Follow
float MinFollowSpeed = 200.f

Below this planar speed the camera follows the car's facing instead of its travel: a car nearly at rest moves by physics noise.

Default
200.f
Category
Follow
float FullFollowSpeed = 2500.f

At and above this planar speed the camera follows at MaxFollowRate.

Default
2500.f
Category
Follow
float MinFollowRate = 1.f

Follow rate at MinFollowSpeed and below: the share of the remaining angle closed is 1 - exp(-Rate * DeltaTime).

Default
1.f
Category
Follow
float MaxFollowRate = 4.f

Follow rate at FullFollowSpeed.

Default
4.f
Category
Follow