diff options
author | aap <aap@papnet.eu> | 2020-05-15 19:41:44 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-15 19:41:44 +0200 |
commit | 1fde2ba468ee88764620b8d01740e9504106c897 (patch) | |
tree | 4c4c0ab0610a65df50a0eb467ddb59eb6b154399 /src/peds/PedIK.h | |
parent | Fix compilation (diff) | |
download | re3-1fde2ba468ee88764620b8d01740e9504106c897.tar re3-1fde2ba468ee88764620b8d01740e9504106c897.tar.gz re3-1fde2ba468ee88764620b8d01740e9504106c897.tar.bz2 re3-1fde2ba468ee88764620b8d01740e9504106c897.tar.lz re3-1fde2ba468ee88764620b8d01740e9504106c897.tar.xz re3-1fde2ba468ee88764620b8d01740e9504106c897.tar.zst re3-1fde2ba468ee88764620b8d01740e9504106c897.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PedIK.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/peds/PedIK.h b/src/peds/PedIK.h index a1cb5d13..b5f895cd 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,19 +48,17 @@ 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); void RotateTorso(AnimBlendFrameData* animBlend, LimbOrientation* limb, bool changeRoll); 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); }; |