From 8a6cec8bed40ae53291e465fa0b025b8c2ac6c5d Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Wed, 29 Jan 2020 01:53:58 +0200 Subject: CPedIK finished --- src/peds/PedIK.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/peds/PedIK.h') diff --git a/src/peds/PedIK.h b/src/peds/PedIK.h index be063003..c23a5fcc 100644 --- a/src/peds/PedIK.h +++ b/src/peds/PedIK.h @@ -50,13 +50,14 @@ public: CPedIK(CPed *ped); bool PointGunInDirection(float phi, float theta); - bool PointGunAtPosition(CVector *position); + bool PointGunInDirectionUsingArm(float phi, float theta); + bool PointGunAtPosition(CVector const& position); void GetComponentPosition(RwV3d *pos, PedNode node); static RwMatrix *GetWorldMatrix(RwFrame *source, RwMatrix *destination); void RotateTorso(AnimBlendFrameData* animBlend, LimbOrientation* limb, bool changeRoll); - void ExtractYawAndPitchLocal(RwMatrixTag*, float*, float*); - void ExtractYawAndPitchWorld(RwMatrixTag*, float*, float*); - LimbMoveStatus MoveLimb(LimbOrientation &a1, float a2, float a3, LimbMovementInfo &a4); + void ExtractYawAndPitchLocal(RwMatrixTag *mat, float *yaw, float *pitch); + void ExtractYawAndPitchWorld(RwMatrixTag *mat, float *yaw, float *pitch); + LimbMoveStatus MoveLimb(LimbOrientation &limb, float approxPhi, float approxTheta, LimbMovementInfo &moveInfo); bool RestoreGunPosn(void); bool LookInDirection(float phi, float theta); bool LookAtPosition(CVector const& pos); -- cgit v1.2.3