CCamera::IntegrateAxes
function · uicamera · primitive
- Address
0x5112d0· 803 bytes, up to0x5115f2- Signature
void __thiscall (CCamera *this, uint32_t now)- Meaning
- Moves the distance, yaw and pitch targets by the active keyboard axes
- Confidence
- verified, proof one
- Finding
- uicamera/driver#the-keyboard-axes
- Test
ui::cam_5112d0
Finding: The keyboard axes in uicamera: the follow camera
Six axes move the camera: 0 zoom in, 1 zoom out, 2 turn right, 3 turn left, 4 look up and 5 look down. The Lua
commands MoveViewInStart and MoveViewInStop, then Out, Right, Left, Up and Down, start and stop them. An active axis changes its target by a CVar speed times the elapsed milliseconds. Distance
moves cameraDistanceMoveSpeed yards a second and stays between 0 and the maximum distance. Yaw moves
cameraYawMoveSpeed degrees a second and wraps into 0 to 2π. Pitch moves cameraPitchMoveSpeed times 0.25 degrees
a second, so 90 is 22.5 degrees a second, and is clamped to plus or minus 89 degrees.
The derivation is in the doc.
Callers 1
- CCamera::Update uicamera
Callees 1
- CCamera::StopAxis uicamera
Calls and jumps by a bare address, from tables/calls.tsv.