diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-05-27 15:53:50 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:32:43 +0200 |
commit | a11bf19b9341a77ce57ba8bd00eb0bf5d2dcc7a8 (patch) | |
tree | 2577a11bb5507a14fdfdbcb74ab79912e0969a98 /src/core | |
parent | Fix IsSphereVisible calls (diff) | |
download | re3-a11bf19b9341a77ce57ba8bd00eb0bf5d2dcc7a8.tar re3-a11bf19b9341a77ce57ba8bd00eb0bf5d2dcc7a8.tar.gz re3-a11bf19b9341a77ce57ba8bd00eb0bf5d2dcc7a8.tar.bz2 re3-a11bf19b9341a77ce57ba8bd00eb0bf5d2dcc7a8.tar.lz re3-a11bf19b9341a77ce57ba8bd00eb0bf5d2dcc7a8.tar.xz re3-a11bf19b9341a77ce57ba8bd00eb0bf5d2dcc7a8.tar.zst re3-a11bf19b9341a77ce57ba8bd00eb0bf5d2dcc7a8.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Cam.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index e0497fe2..b6e4f967 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -4933,9 +4933,9 @@ CCam::Process_FollowCar_SA(const CVector& CameraTarget, float TargetOrientation, AlphaSpeed = 0.0; Distance = 1000.0; - Front.x = -(cos(Beta) * cos(Alpha)); - Front.y = -(sin(Beta) * cos(Alpha)); - Front.z = sin(Alpha); + Front.x = -(Cos(Beta) * Cos(Alpha)); + Front.y = -(Sin(Beta) * Cos(Alpha)); + Front.z = Sin(Alpha); m_aTargetHistoryPosOne = TargetCoors - nextDistance * Front; @@ -5210,9 +5210,9 @@ CCam::Process_FollowCar_SA(const CVector& CameraTarget, float TargetOrientation, lastBeta = Beta; - Front.x = -(cos(Beta) * cos(Alpha)); - Front.y = -(sin(Beta) * cos(Alpha)); - Front.z = sin(Alpha); + Front.x = -(Cos(Beta) * Cos(Alpha)); + Front.y = -(Sin(Beta) * Cos(Alpha)); + Front.z = Sin(Alpha); GetVectorsReadyForRW(); TheCamera.m_bCamDirectlyBehind = false; TheCamera.m_bCamDirectlyInFront = false; @@ -5222,9 +5222,9 @@ CCam::Process_FollowCar_SA(const CVector& CameraTarget, float TargetOrientation, m_cvecTargetCoorsForFudgeInter = TargetCoors; m_aTargetHistoryPosThree = m_aTargetHistoryPosOne; float nextAlpha = alphaWithSpeedAccounted + zoomModeAlphaOffset; - float nextFrontX = -(cos(Beta) * cos(nextAlpha)); - float nextFrontY = -(sin(Beta) * cos(nextAlpha)); - float nextFrontZ = sin(nextAlpha); + float nextFrontX = -(Cos(Beta) * Cos(nextAlpha)); + float nextFrontY = -(Sin(Beta) * Cos(nextAlpha)); + float nextFrontZ = Sin(nextAlpha); m_aTargetHistoryPosOne.x = TargetCoors.x - nextFrontX * nextDistance; m_aTargetHistoryPosOne.y = TargetCoors.y - nextFrontY * nextDistance; |