CCamera::UpdateTransitions
function · uicamera · primitive
- Address
0x50f160· 1444 bytes, up to0x50f703- Signature
void __thiscall (CCamera *this, CGObject_C *target, uint32_t now)- Meaning
- Eases the bob offsets and the seven channels toward their targets
- Confidence
- verified, proof one
- Finding
- uicamera/transitions#the-ease
- Test
ui::glue_50f160_change_detect,ui::glue_50f160_rate_frac
Finding: The ease in uicamera: transitions
Every frame 0x50f160(target, now) advances each channel whose live value differs from its target by at least
2^-22. A channel with its flag set and a start time not after now takes t = (now - start) * 0.001 / duration. At
t of 1 or more the live value becomes the target; below that it is from + (target - from) * (1 - cos(π t)) / 2.
A channel whose start is still ahead is left alone. A channel that has reached its target has its flag cleared, its
target set to the live value and its times set to 0. The yaw channel is skipped in mouselook.
The derivation is in the doc.
Callers 1
- CCamera::Update uicamera
Callees 5
- CCamera::ClampAngles uicamera
- CCamera::ProbeSlope uicamera
- CCamera::ArmTerrainTilt uicamera
- BobbingNeedsClear uicamera
- CosineInterpolate net
Calls and jumps by a bare address, from tables/calls.tsv.