summaryrefslogtreecommitdiffstats
path: root/src/peds/PedIK.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-09 20:35:04 +0200
committerGitHub <noreply@github.com>2020-04-09 20:35:04 +0200
commitd8cf6258b71dc09452b65f7d83dbd5a221fa54c4 (patch)
tree8023dc2be8d67f430a5788bd850d287058f0cd8a /src/peds/PedIK.cpp
parentCStats finished (diff)
parentfixed questionable RW usage; changed radar mask to PS2 techinque (diff)
downloadre3-d8cf6258b71dc09452b65f7d83dbd5a221fa54c4.tar
re3-d8cf6258b71dc09452b65f7d83dbd5a221fa54c4.tar.gz
re3-d8cf6258b71dc09452b65f7d83dbd5a221fa54c4.tar.bz2
re3-d8cf6258b71dc09452b65f7d83dbd5a221fa54c4.tar.lz
re3-d8cf6258b71dc09452b65f7d83dbd5a221fa54c4.tar.xz
re3-d8cf6258b71dc09452b65f7d83dbd5a221fa54c4.tar.zst
re3-d8cf6258b71dc09452b65f7d83dbd5a221fa54c4.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PedIK.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PedIK.cpp b/src/peds/PedIK.cpp
index cc4b0dd0..8e450ee6 100644
--- a/src/peds/PedIK.cpp
+++ b/src/peds/PedIK.cpp
@@ -340,7 +340,7 @@ CPedIK::RestoreLookAt(void)
}
void
-CPedIK::ExtractYawAndPitchWorld(RwMatrixTag *mat, float *yaw, float *pitch)
+CPedIK::ExtractYawAndPitchWorld(RwMatrix *mat, float *yaw, float *pitch)
{
float f = clamp(DotProduct(mat->up, CVector(0.0f, 1.0f, 0.0f)), -1.0f, 1.0f);
*yaw = Acos(f);
@@ -352,7 +352,7 @@ CPedIK::ExtractYawAndPitchWorld(RwMatrixTag *mat, float *yaw, float *pitch)
}
void
-CPedIK::ExtractYawAndPitchLocal(RwMatrixTag *mat, float *yaw, float *pitch)
+CPedIK::ExtractYawAndPitchLocal(RwMatrix *mat, float *yaw, float *pitch)
{
float f = clamp(DotProduct(mat->at, CVector(0.0f, 0.0f, 1.0f)), -1.0f, 1.0f);
*yaw = Acos(f);