benilla-re systems structs docs

CCamera::SetTarget

function · uicamera · orchestration

Address
0x50d0f0 · 546 bytes, up to 0x50d311
Signature
void __thiscall (CCamera *this, CGObject_C *target)
Meaning
Switches the followed object, snapping its tilt and drunk bias, or frees the shakes for none
Confidence
verified, proof one
Finding
uicamera/effects#where-a-shake-lands
Test
ui::glue_50d0f0_percent_scale

Finding: Where a shake lands in uicamera: shake, bobbing, terrain tilt and the drunk view

The shake offset is added to the camera's eye position in world space. It never turns the view or changes the field of view. The driver zeroes the offset every frame and computes it only for a unit that is neither swimming nor on an airborne or aquatic server spline; on a skipped frame no shake ages or ends. The offset also takes the bob offset, and the solver tests the shaken eye against the world. Setting the camera's target to none frees every record; destroying the camera unlinks them without freeing any.

The derivation is in the doc.

Callers 3

Callees 11

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