summaryrefslogtreecommitdiffstats
path: root/src/entities/PedIK.cpp
diff options
context:
space:
mode:
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)
{