CCamera::MakeViewAngles
function · uicamera · primitive
- Address
0x50f710· 356 bytes, up to0x50f873- Signature
void __thiscall (CCamera *this, CGObject_C *target, float *yaw, float *pitch, float *roll)- Meaning
- Makes the view yaw, pitch and roll from the offsets and the target's facing and builds the basis
- Confidence
- verified, proof one
- Finding
- uicamera/driver#view-angles
- Test
ui::glue_50f710_adds,ui::glue_50f710_deadband
Finding: View angles in uicamera: the follow camera
Each update makes the view angles from the live offsets and the target's facing. The yaw is the yaw offset
(+0xf0) plus the flip bias (+0x100), plus the target's facing unless the camera is in the absolute frame
(+0xa4 above 0). The facing is the unit's own, smoothed by 0x50d810 for a unit that is not the active mover. The
pitch is the live pitch (+0xf4) plus the ground pitch (+0x108) when +0xa8 is 0 or less, clamped to plus or minus
89 degrees; the roll is +0xf8. FlipCameraYaw(degrees) adds degrees to the flip bias, in radians.
The derivation is in the doc.
Callers 2
- CCamera::Update uicamera
- SetCameraTransport uicamera
Callees 4
- AngleWrap fastmath
- RebuildCameraBasis unassigned
- CCamera::FilterFacing uicamera
- CGUnit_C::UpdateDisplayFacing objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.