CCamera::Update
function · uicamera · primitive
- Address
0x50e8d0· 1914 bytes, up to0x50f049- Signature
void __thiscall (CCamera *this, CGObject_C *target, uint32_t now)- Meaning
- Updates the follow camera for a target: axes, angles, solver, eye, pull-in, fade
- Confidence
- verified, proof one
- Finding
- uicamera/driver#the-per-frame-update
- Test
ui::glue4fd_50e8d0_distance_fade_ratio,ui::glue4fd_50e8d0_fade_alpha_ratio,ui::glue4fd_50e8d0_field_abs,ui::glue4fd_50e8d0_local8_preadd,ui::glue4fd_50e8d0_look_rate,ui::glue4fd_50e8d0_mood_fade,ui::glue4fd_50e8d0_overshoot_recenter,ui::glue4fd_50e8d0_overshoot_recenter_pitch,ui::glue4fd_50e8d0_pitch_accumulate,ui::glue4fd_50e8d0_shake_sincos,ui::glue4fd_50e8d0_view_compose
Finding: The per-frame update in uicamera: the follow camera
The world frame resolves the camera's target, a GUID at +0x88, and calls the driver 0x50e8d0(target, now)
every frame. A null target raises an error. Unless mode bit 2 is set, 0x50ca90(target) must succeed or the update
stops. Then in order: the auto-return edge (0x5111f0); the target's position, compared with the last one at +0x174;
the keyboard axes (0x5112d0, when any is active) and the transitions (0x50f160); the view angles (0x50f710);
bobbing (0x511920) and the water bands (0x511ad0); the near and far solver (0x50e570); the eye (0x50de00); the pull-in
glides, the self fade (0x50f8f0) and the pivot height (0x50f880). A taxi ride arms the yaw offset back to 0.
The derivation is in the doc.
Callers 1
- CCamera::OnFrame uicamera
Callees 26
- _atexit crt
- __ftol crt
- OsGetAsyncTimeMs core
- 0x50a780 unassigned
- CCamera::BuildPivotHeights uicamera
- CCamera::PlaceEye uicamera
- CCamera::SolveLimits uicamera
- CCamera::UpdateTransitions uicamera
- CCamera::MakeViewAngles uicamera
- CCamera::ArmPivotHeight uicamera
- CCamera::SetTargetAlpha uicamera
- PivotBiasNeedsClear uicamera
- CCamera::SetExternalMove uicamera
- CCamera::IntegrateAxes uicamera
- CCamera::ApplyShakes uicamera
- CCamera::ComputeBob uicamera
- CCamera::ClassifyWaterBand uicamera
- CCamera::ArmPitch uicamera
- CCamera::ArmPivotBias uicamera
- CCamera::ArmYaw uicamera
- GetInputControl input
- CInputControl::HandOffPitch input
- CosineInterpolate net
- CGUnit_C::IsAutoMoving objectlayer
- SErrSetLastError storm
- RotateMatrix3 cmath
Calls and jumps by a bare address, from tables/calls.tsv.