benilla-re systems structs docs

CCamera::ArmFov

function · uicamera · primitive

Address
0x512270 · 329 bytes, up to 0x5123b8
Signature
bool __thiscall (CCamera *this, float target, float delay, float factor, uint32_t now)
Meaning
Arms the field of view transition by the shortest arc
Confidence
verified, proof one
Finding
uicamera/transitions#arming-a-transition
Test
ui::cam_512270

Finding: Arming a transition in uicamera: transitions

An angle setter (target, delay, factor, now) begins at now + delay * 1000 milliseconds and lasts factor times the angle to cover divided by the speed CVar in radians a second. The angle runs from the live value, wrapped to within π of the target, to the target. Nothing is armed within 0.001 of the target or on a repeat of the armed target, delay and factor. Yaw 0x512c70 (inner 0x512dc0), pitch 0x512830 (0x512980), pivot bias 0x512a50 (0x512ba0), ground pitch 0x512490 (0x5125e0) and field of view 0x512270 (0x5123c0) follow this. Distance 0x512120 (inner 0x512200) and height 0x5126b0 (inner 0x512790) do not wrap. A zero factor gives a duration of 0, and the value arrives at the next frame.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.