Behind To Event Camera

Signature

void behindtoeventcamera(int identifier, float time, int unused, int easingType); //id:0x034f

Description

Performs a transition from the battle camera to an event camera over time.

Arguments

Identifier

The identifier of the camera that will be transitioned to.

Usually, it's OR'ed by 0x02000000 before passing it as an argument. However, this is not necessary and probably just a leftover from the dev tools used to automate the process of the camera selection.

This identifier refers to the camera entry in the section 8 file of the ebp file of the location.

Time

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

Unused

This argument is unused.

Easing Type

Controls the amount of easing on the camera transition.

Identifier
Description
Calculation

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

Notes

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

Last updated