diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-11 20:04:35 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-11 20:04:35 +0200 |
commit | 8fae2dcc263cd8edeb7d2f55c95369457d6d2ded (patch) | |
tree | 71e551e81fa2cce105d65fe95a1972cc0716ea0c /src/entities/Physical.h | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
download | re3-8fae2dcc263cd8edeb7d2f55c95369457d6d2ded.tar re3-8fae2dcc263cd8edeb7d2f55c95369457d6d2ded.tar.gz re3-8fae2dcc263cd8edeb7d2f55c95369457d6d2ded.tar.bz2 re3-8fae2dcc263cd8edeb7d2f55c95369457d6d2ded.tar.lz re3-8fae2dcc263cd8edeb7d2f55c95369457d6d2ded.tar.xz re3-8fae2dcc263cd8edeb7d2f55c95369457d6d2ded.tar.zst re3-8fae2dcc263cd8edeb7d2f55c95369457d6d2ded.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/Physical.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/entities/Physical.h b/src/entities/Physical.h index c801ae72..ce02e463 100644 --- a/src/entities/Physical.h +++ b/src/entities/Physical.h @@ -117,6 +117,17 @@ public: void SetMoveSpeed(const CVector& speed) { m_vecMoveSpeed = speed; } + void AddToMoveSpeed(float x, float y, float z) { + m_vecMoveSpeed.x += x; + m_vecMoveSpeed.y += y; + m_vecMoveSpeed.z += z; + } + void AddToMoveSpeed(const CVector& addition) { + m_vecMoveSpeed += addition; + } + void AddToMoveSpeed(const CVector2D& addition) { + m_vecMoveSpeed += CVector(addition.x, addition.y, 0.0f); + } const CVector &GetTurnSpeed() { return m_vecTurnSpeed; } void SetTurnSpeed(float x, float y, float z) { m_vecTurnSpeed.x = x; |