Behind Camera Fov Y Roll

Signature

void behindcamerafovyroll(float time, int easingType, float fov, float rotation); //id:0x023a

Description

Modifies the additive field of view and rotation values of the current camera over time.

It's usually used in cutscenes to display a zoom in or out transition effect while also rotating the camera.

Arguments

Time

The amount of seconds it takes until the camera transition is complete.

The value is doubled after being passed.

Easing Type

Controls the amount of easing on the camera transition.

IdentifierDescriptionCalculation

0

Fast start and middle, normal end.

f(x)=(sin((xπ)π/2)+1)/2f(x) = (sin((x * π) - π / 2) + 1) / 2

1

Slow start, normal middle and end.

f(x)=sin((xπ)/2π/2)+1f(x) = sin((x * π) / 2 - π / 2) + 1

2

Fast start, normal middle, slow end.

f(x)=sin(x(π/2))f(x) = sin(x * (π / 2))

3

No easing.

f(x)=xf(x) = x

Field of View

The vertical field of view (radian) that is added on top of the current one of the camera.

Rotation

The rotation that is added on top of the current one of the camera.

Notes

If a time value higher than 0 is used, the Behind Camera Fov Y Roll Sync function should be followed soon after this one to stop the execution of the following functions until the camera transition is completed.

Last updated