CCamera::GetForward
function · uicamera · primitive
- Address
0x511f40· 155 bytes, up to0x511fda- Signature
void __thiscall (CCamera *this, float *out)- Meaning
- Returns the first row of the camera's basis
- Confidence
- verified, proof one
- Finding
- uicamera/view#pitch-units-and-sign
- Test
ui::cam_511f40
Finding: Pitch units and sign in uicamera: the camera's saved view
Inside the camera the pitch is in radians, positive looking down. The view direction is
(cos yaw cos pitch, sin yaw cos pitch, -sin pitch) and the eye is the pivot minus the distance times that
direction, so a positive pitch puts the eye above the pivot. A pitch of 10 degrees is the normal over-the-shoulder
view. The pitch is clamped to plus or minus 1.5533430576324463 radians (89 degrees) wherever input changes
it; the file path applies none.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- CCamera::BuildTransportRotation uicamera
Calls and jumps by a bare address, from tables/calls.tsv.