benilla-re systems structs docs

CCamera::GetLeft

function · uicamera · primitive

Address
0x511fe0 · 155 bytes, up to 0x51207a
Signature
void __thiscall (CCamera *this, NTempest::C3Vector *out)
Meaning
Returns the second basis row, turned by the transport's rotation
Confidence
verified, proof one
Finding
uicamera/driver#riding-a-transport
Test
ui::cam_511fe0

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 0

None by a direct call or jump.

Callees 1

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