| 655 | } |
| 656 | |
| 657 | void UpdateCameraElevation() |
| 658 | { |
| 659 | DoThumbstickCamera(); |
| 660 | |
| 661 | if (Camera.laraNode != NO_VALUE) |
| 662 | { |
| 663 | auto pos = GetJointPosition(LaraItem, Camera.laraNode, Vector3i::Zero); |
| 664 | auto pos1 = GetJointPosition(LaraItem, Camera.laraNode, Vector3i(0, -CLICK(1), BLOCK(2))); |
| 665 | pos = pos1 - pos; |
| 666 | Camera.actualAngle = Camera.targetAngle + phd_atan(pos.z, pos.x); |
| 667 | } |
| 668 | else |
| 669 | Camera.actualAngle = LaraItem->Pose.Orientation.y + Camera.targetAngle; |
| 670 | |
| 671 | Camera.actualElevation += (Camera.targetElevation - Camera.actualElevation) / 8; |
| 672 | } |
| 673 | |
| 674 | void CombatCamera(ItemInfo* item) |
| 675 | { |
no test coverage detected