benilla-re systems structs docs

s_pivotBiasAxis

global · uicamera

Address
0xbe0f20 · 12 bytes, up to 0xbe0f2b
Type
float[3]
Meaning
Holds the axis (0, 1, 0) the pivot bias rotates the basis about
Confidence
verified, proof one
Finding
uicamera/driver#where-each-channel-enters

Finding: Where each channel enters in uicamera: the follow camera

The ground pitch +0x108 is added to the pitch before the 89 degree clamp and the basis is built from the sum, so it moves the eye as well as the view. The bob and the shake are added to the eye as world offsets. The solver sweeps along the basis and the eye is stored at +0x08 to +0x10. Only then does the pivot bias +0x104, when 0.001 or more in size, rotate the basis about (0, 1, 0), so it turns the view and not the eye. In first person the forward vector then takes its horizontal part from the yaw and keeps its height.

The derivation is in the doc.