summaryrefslogtreecommitdiffstats
path: root/src/peds/PedIK.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-16 10:33:19 +0200
committeraap <aap@papnet.eu>2020-05-16 10:33:19 +0200
commit0c231663188ff4b639549c1be3c6f08df9a5afe1 (patch)
tree580611bace98ef247c549056810c1502b999c72c /src/peds/PedIK.h
parentRemove unused audio enum (diff)
downloadre3-0c231663188ff4b639549c1be3c6f08df9a5afe1.tar
re3-0c231663188ff4b639549c1be3c6f08df9a5afe1.tar.gz
re3-0c231663188ff4b639549c1be3c6f08df9a5afe1.tar.bz2
re3-0c231663188ff4b639549c1be3c6f08df9a5afe1.tar.lz
re3-0c231663188ff4b639549c1be3c6f08df9a5afe1.tar.xz
re3-0c231663188ff4b639549c1be3c6f08df9a5afe1.tar.zst
re3-0c231663188ff4b639549c1be3c6f08df9a5afe1.zip
Diffstat (limited to 'src/peds/PedIK.h')
-rw-r--r--src/peds/PedIK.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/peds/PedIK.h b/src/peds/PedIK.h
index a1cb5d13..e91d7c06 100644
--- a/src/peds/PedIK.h
+++ b/src/peds/PedIK.h
@@ -4,8 +4,8 @@
struct LimbOrientation
{
- float phi;
- float theta;
+ float yaw;
+ float pitch;
};
struct LimbMovementInfo {
@@ -48,8 +48,8 @@ public:
static LimbMovementInfo ms_lowerArmInfo;
CPedIK(CPed *ped);
- bool PointGunInDirection(float phi, float theta);
- bool PointGunInDirectionUsingArm(float phi, float theta);
+ bool PointGunInDirection(float targetYaw, float targetPitch);
+ bool PointGunInDirectionUsingArm(float targetYaw, float targetPitch);
bool PointGunAtPosition(CVector const& position);
void GetComponentPosition(RwV3d *pos, uint32 node);
static RwMatrix *GetWorldMatrix(RwFrame *source, RwMatrix *destination);
@@ -57,10 +57,10 @@ public:
void ExtractYawAndPitchLocal(RwMatrix *mat, float *yaw, float *pitch);
void ExtractYawAndPitchLocalSkinned(AnimBlendFrameData *node, float *yaw, float *pitch);
void ExtractYawAndPitchWorld(RwMatrix *mat, float *yaw, float *pitch);
- LimbMoveStatus MoveLimb(LimbOrientation &limb, float approxPhi, float approxTheta, LimbMovementInfo &moveInfo);
+ LimbMoveStatus MoveLimb(LimbOrientation &limb, float targetYaw, float targetPitch, LimbMovementInfo &moveInfo);
bool RestoreGunPosn(void);
void RotateHead(void);
- bool LookInDirection(float phi, float theta);
+ bool LookInDirection(float targetYaw, float targetPitch);
bool LookAtPosition(CVector const& pos);
bool RestoreLookAt(void);
};