diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2019-06-14 14:33:08 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-06-14 16:04:29 +0200 |
commit | ed69be36cc30609100f0c75ac18aa5b4c15b22b4 (patch) | |
tree | bbf363a93f1450a46f7cab6a9d5cd9aeb28fb4f9 /src/entities/PedIK.h | |
parent | Merge pull request #14 from ShFil119/patch-1 (diff) | |
download | re3-ed69be36cc30609100f0c75ac18aa5b4c15b22b4.tar re3-ed69be36cc30609100f0c75ac18aa5b4c15b22b4.tar.gz re3-ed69be36cc30609100f0c75ac18aa5b4c15b22b4.tar.bz2 re3-ed69be36cc30609100f0c75ac18aa5b4c15b22b4.tar.lz re3-ed69be36cc30609100f0c75ac18aa5b4c15b22b4.tar.xz re3-ed69be36cc30609100f0c75ac18aa5b4c15b22b4.tar.zst re3-ed69be36cc30609100f0c75ac18aa5b4c15b22b4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/PedIK.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/entities/PedIK.h b/src/entities/PedIK.h new file mode 100644 index 00000000..5e873bf5 --- /dev/null +++ b/src/entities/PedIK.h @@ -0,0 +1,26 @@ +#pragma once +#include <common.h> + +struct LimbOrientation +{ + float phi; + float theta; +}; + +class CPed; + +class CPedIK +{ +public: + CPed* m_ped; + LimbOrientation m_headOrient; + LimbOrientation m_torsoOrient; + LimbOrientation m_upperArmOrient; + LimbOrientation m_lowerArmOrient; + int32 m_flags; + + void GetComponentPosition(RwV3d* pos, int id); + bool PointGunInDirection(float phi, float theta); + bool PointGunAtPosition(CVector* position); +}; +static_assert(sizeof(CPedIK) == 0x28, "CPedIK: error"); |