mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-16 21:34:08 +00:00
added wrappers around math functions
This commit is contained in:
parent
80e0409d6a
commit
4a36d64f15
31 changed files with 204 additions and 191 deletions
|
@ -1505,9 +1505,9 @@ void CReplay::ProcessLookAroundCam(void)
|
|||
else
|
||||
fAlphaAngleLookAroundCam = max(0.1f, min(1.5f, fAlphaAngleLookAroundCam + y_moved));
|
||||
CVector camera_pt(
|
||||
fDistanceLookAroundCam * sin(fBetaAngleLookAroundCam) * cos(fAlphaAngleLookAroundCam),
|
||||
fDistanceLookAroundCam * cos(fBetaAngleLookAroundCam) * cos(fAlphaAngleLookAroundCam),
|
||||
fDistanceLookAroundCam * sin(fAlphaAngleLookAroundCam)
|
||||
fDistanceLookAroundCam * Sin(fBetaAngleLookAroundCam) * Cos(fAlphaAngleLookAroundCam),
|
||||
fDistanceLookAroundCam * Cos(fBetaAngleLookAroundCam) * Cos(fAlphaAngleLookAroundCam),
|
||||
fDistanceLookAroundCam * Sin(fAlphaAngleLookAroundCam)
|
||||
);
|
||||
CVector focus = CVector(CameraFocusX, CameraFocusY, CameraFocusZ);
|
||||
camera_pt += focus;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue