CCamera::BuildPivotHeights
function · uicamera · primitive
- Address
0x50ca90· 1593 bytes, up to0x50d0c8- Signature
bool __thiscall (CCamera *this, CGObject_C *unit)- Meaning
- Rebuilds the near, far and swimming pivot heights from the unit's model and arms the height
- Confidence
- verified, proof one
- Finding
- uicamera/driver#pivot-height
- Test
ui::glue_50c_accum_a1_fold,ui::glue_50c_accum_a2_fold,ui::glue_50c_accum_xy,ui::glue_50c_accum_z,ui::glue_50c_clamp_box_extent,ui::glue_50c_parallax_combine,ui::glue_50c_parallax_tail,ui::glue_50c_scale_ce44,ui::glue_50c_scale_component,ui::glue_50c_scale_scalar
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::SetTarget uicamera
- CCamera::Update uicamera
Callees 14
- SplatVector3 loadingscreen
- OsGetAsyncTimeMs core
- 0x4b1df0 ui
- CCamera::ArmPivotHeight uicamera
- CCamera::ClassifyWaterBand uicamera
- 0x5132f0 uicamera
- 0x513a40 unassigned
- CM2Model::IsLoaded models
- CM2Model::HasAnimation models
- CM2Model::GetSequenceInfo models
- CM2Model::HasAttachment models
- CM2Model::GetAttachmentOffset models
- CM2Model::GetBoundingSphere models
- CM2Model::GetCollisionBox models
Calls and jumps by a bare address, from tables/calls.tsv.