CCamera::ShiftPitch
function · uicamera · primitive
- Address
0x510120· 395 bytes, up to0x5102aa- Signature
void __thiscall (CCamera *this, float delta)- Meaning
- Adds an angle to the pitch target, start and live value, clamped
- Confidence
- inferred
- Finding
- uicamera/transitions#relative-and-absolute-frames
- Test
ui::cam_510120
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 3
- CCamera::PushGroundPitch uicamera
- CCamera::PopGroundPitch uicamera
- CCamera::MouseTurn uicamera
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.