CCamera::UpdateShot
function · uicamera · primitive
- Address
0x50f060· 254 bytes, up to0x50f15d- Signature
void __thiscall (CCamera *this, uint32_t arg2)- Meaning
- Advances the shot and applies its eye, look-at and roll
- Confidence
- verified, proof one
- Finding
- uicamera/cinematic#arming-and-the-per-frame-step
Finding: Arming and the per-frame step in uicamera: the in-engine cinematic
0x50c740 arms the shot camera: it sets the arm bit, stamps the clock +0x4c, sets the scene time to 0, starts animation 0 of the model, links it for animation, runs one animate pass, takes camera 0 of the model into +0x50 and applies the first view. 0x50f060 runs each frame while a model is held: if the arm bit is clear it waits for the model to load and arms; then it advances the scene by the milliseconds since +0x4c, animates it, reads the camera's eye (property 7), look-at (property 8) and roll (property 5), stores the clock and applies the view with 0x50d5d0. +0x50 is non-null exactly while a shot is armed.
The derivation is in the doc.
Callers 1
- CCamera::OnFrame uicamera
Callees 10
- OsGetAsyncTimeMs core
- 0x50ad10 unassigned
- CCamera::ArmShot uicamera
- CCamera::SetLookAt uicamera
- M2SceneAdvance models
- M2SceneAnimateAndCollect models
- CM2Model::IsLoaded models
- CM2Model::SetAnimated models
- GetVectorProperty camera
- GetScalarProperty camera
Calls and jumps by a bare address, from tables/calls.tsv.