diff options
author | Fire_Head <Fire-Head@users.noreply.github.com> | 2019-08-15 04:06:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-15 04:06:52 +0200 |
commit | 6909fa283a25410a6d5f2fc93259b71770512ca2 (patch) | |
tree | cc187ba965eb71352fae028d3eb7f9f8db463153 /src/entities/Physical.h | |
parent | CParticleObject done, cDMAudio done (diff) | |
parent | Merge pull request #189 from Nick007J/master (diff) | |
download | re3-6909fa283a25410a6d5f2fc93259b71770512ca2.tar re3-6909fa283a25410a6d5f2fc93259b71770512ca2.tar.gz re3-6909fa283a25410a6d5f2fc93259b71770512ca2.tar.bz2 re3-6909fa283a25410a6d5f2fc93259b71770512ca2.tar.lz re3-6909fa283a25410a6d5f2fc93259b71770512ca2.tar.xz re3-6909fa283a25410a6d5f2fc93259b71770512ca2.tar.zst re3-6909fa283a25410a6d5f2fc93259b71770512ca2.zip |
Diffstat (limited to 'src/entities/Physical.h')
-rw-r--r-- | src/entities/Physical.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/entities/Physical.h b/src/entities/Physical.h index 26ef0086..2786a7de 100644 --- a/src/entities/Physical.h +++ b/src/entities/Physical.h @@ -19,8 +19,7 @@ public: int32 m_audioEntityId; float unk1; - CTreadable *m_carTreadable; - CTreadable *m_pedTreadable; + CTreadable *m_treadable[2]; // car and ped uint32 m_nLastTimeCollided; CVector m_vecMoveSpeed; // velocity CVector m_vecTurnSpeed; // angular velocity @@ -115,6 +114,9 @@ public: m_vecMoveSpeed.y = y; m_vecMoveSpeed.z = z; } + void SetMoveSpeed(const CVector& speed) { + m_vecMoveSpeed = speed; + } const CVector &GetTurnSpeed() { return m_vecTurnSpeed; } void SetTurnSpeed(float x, float y, float z) { m_vecTurnSpeed.x = x; |