summaryrefslogtreecommitdiff
path: root/src/entities/PedIK.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-07-01 00:50:40 +0300
committereray orçunus <erayorcunus@gmail.com>2019-07-01 02:48:09 +0300
commitce28a6d298408513866716d00dcd16ed8ef5f285 (patch)
tree81e83f4689238683112b4776006262bfdbc88506 /src/entities/PedIK.cpp
parent99295827f79ccffa9d3976af2b9a19920d7d8bde (diff)
More CPed
Signed-off-by: eray orçunus <erayorcunus@gmail.com>
Diffstat (limited to 'src/entities/PedIK.cpp')
-rw-r--r--src/entities/PedIK.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/entities/PedIK.cpp b/src/entities/PedIK.cpp
index ebc17097..9d688ff9 100644
--- a/src/entities/PedIK.cpp
+++ b/src/entities/PedIK.cpp
@@ -6,6 +6,20 @@
WRAPPER bool CPedIK::PointGunInDirection(float phi, float theta) { EAXJMP(0x4ED9B0); }
WRAPPER bool CPedIK::PointGunAtPosition(CVector *position) { EAXJMP(0x4ED920); }
+CPedIK::CPedIK(CPed *ped)
+{
+ m_ped = ped;
+ m_flags = 0;
+ m_headOrient.phi = 0.0f;
+ m_headOrient.theta = 0.0f;
+ m_torsoOrient.phi = 0.0f;
+ m_torsoOrient.theta = 0.0f;
+ m_upperArmOrient.phi = 0.0f;
+ m_upperArmOrient.theta = 0.0f;
+ m_lowerArmOrient.phi = 0.0f;
+ m_lowerArmOrient.theta = 0.0f;
+}
+
void
CPedIK::GetComponentPosition(RwV3d *pos, PedNode node)
{