CCamera::ComputeEye
function · camera · unreached
- Address
0x7ac810· 140 bytes, up to0x7ac89b- Signature
void __fastcall (const CCamera *camera, float *out)- Meaning
- Writes target - distance·(cos pitch cos yaw, cos pitch sin yaw, sin pitch)
- Confidence
- verified, proof one
- Finding
- camera#eye-and-target-placement
Finding: Eye and target placement in camera
0x7ac810 and 0x7ac8a0 (ecx the camera, edx a three-float output) place one end of the
camera's line of sight from the other: the eye as target − d·v and the target as eye + d·v,
with d the distance (+0x8c) and v = (cos pitch·cos yaw, cos pitch·sin yaw, sin pitch) from the
cached cosines and sines of pitch (+0xf0, +0xf4) and yaw (+0x168, +0x16c). A null camera or
output raises error 0x57. Nothing calls either.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.