benilla-re systems structs docs

CCamera::ShiftYaw

function · uicamera · primitive

Address
0x5102b0 · 294 bytes, up to 0x5103d5
Signature
void __thiscall (CCamera *this, float delta)
Meaning
Adds an angle to the yaw target, start and live value, wrapped
Confidence
verified, proof one
Finding
uicamera/transitions#relative-and-absolute-frames
Test
ui::cam_5102b0

Finding: Relative and absolute frames in uicamera: transitions

The yaw offset is normally relative to the target's facing. Two counters change that. While +0xa4 is above 0 the camera is in the absolute frame: the view yaw is the offset alone. Raising the counter from 0 adds the target's facing to the yaw offsets so the picture does not move, and lowering it to 0 takes the facing off again. +0xa8 does the same for the terrain pitch, which is added to the view pitch only while the counter is 0. Mouselook raises both counters when it begins and lowers them when it ends; the external-move flag of uicamera/follow raises the first.

The derivation is in the doc.

Callers 4

Callees 1

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