CCamera::ArmPivotHeight
function · uicamera · primitive
- Address
0x50f880· 101 bytes, up to0x50f8e4- Signature
void __thiscall (CCamera *this, CGObject_C *target, uint32_t now)- Meaning
- Arms the height transition to the swimming, near or far pivot height
- Confidence
- verified, proof one
- Finding
- uicamera/driver#pivot-height
Finding: Pivot height in uicamera: the follow camera
The camera keeps three pivot heights for its target: near, far and swimming. It rebuilds them whenever it gets a target, once the unit's model (the mount's, if mounted) is loaded.
The base height is the attachment 17 height plus 7/72 yard, or 0.9 of the bounding box height, times a scale S of the descriptor and spell scales. Sitting, sleeping, kneeling, dying and mounted states subtract an animation box drop; each preset is clamped from 5/6 to 15. The arm 0x50f880 picks the swimming
preset for a swimmer, else the near one when the target distance is under 1.8315 yards and the far one beyond, and eases to it in |target - live| / cameraHeightSmoothSpeed seconds.
The derivation is in the doc.
Callers 2
- CCamera::BuildPivotHeights uicamera
- CCamera::Update uicamera
Callees 1
- CCamera::ArmHeight uicamera
Calls and jumps by a bare address, from tables/calls.tsv.