BuildYawPitchRollBasis
function · cmath · primitive
- Address
0x7bf4b0· 374 bytes, up to0x7bf625- Signature
void __thiscall (NTempest::C33Matrix *this, float yaw, float pitch, float roll)- Meaning
- Builds the transpose of Rz(yaw), Ry(pitch), Rx(roll) multiplied in that order
- Confidence
- verified, proof one
- Finding
- uicamera/view#pitch-units-and-sign
- Test
cmath::euler_to_mat3_f
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 2
- RebuildCameraBasis unassigned
- CGUnit_C::BuildSwimTransform objectlayer
Callees 2
- InitMatrix3x3 objectlayer
- MultiplyMatrix3 cmath
Calls and jumps by a bare address, from tables/calls.tsv.