CCamera::SetLookAt
function · uicamera · primitive
- Address
0x50d5d0· 193 bytes, up to0x50d690- Signature
void __thiscall (CCamera *this, const NTempest::C3Vector *eye, const NTempest::C3Vector *target, float roll)- Meaning
- Stores the eye and builds the view basis toward the target with the roll
- Confidence
- verified, proof one
- Finding
- uicamera/cinematic#applying-the-view
- Test
ui::cam_50d5d0
Finding: Applying the view in uicamera: the in-engine cinematic
0x50d5d0(eye, target, roll) copies the eye to +0x08, forms the unit vector from eye to target, keeping the vector as it is when its length is under 2^-22, and builds the basis from that vector and the roll angle through 0x50a930. The camera's view therefore comes from the shot's eye, look-at and roll alone.
The derivation is in the doc.
Callers 2
- CCamera::ArmShot uicamera
- CCamera::UpdateShot uicamera
Callees 1
- 0x50a930 unassigned
Calls and jumps by a bare address, from tables/calls.tsv.