benilla-re systems structs docs

CCamera::BuildTransportRotation

function · uicamera · orchestration

Address
0x511e90 · 174 bytes, up to 0x511f3d
Signature
void __thiscall (CCamera *this, float *out)
Meaning
Builds the rotation of the camera's transport about the vertical axis
Confidence
verified, proof one
Finding
uicamera/driver#riding-a-transport

Finding: Riding a transport in uicamera: the follow camera

The camera keeps the GUID of the transport its target rides, at +0x98 and +0x9c. The three basis rows the camera returns (forward, left, up) are rotated about the vertical axis by the transport's facing when the GUID is set. When the GUID changes while the camera is in the absolute frame (+0xa4 above 0), the yaw offset moves by the old transport's facing and back by the new one's, so the picture does not turn; the view angles are then made again for the target. Setting a target stores its transport.

The derivation is in the doc.

Callers 3

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.