diff options
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 2d9781edb..9cb0f970a 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -1,6 +1,7 @@ #pragma once +#include "../BoundingBox.h" #include "../Item.h" #include "../OSSupport/AtomicUniquePtr.h" @@ -239,6 +240,8 @@ public: int GetChunkX(void) const { return FloorC(m_Position.x / cChunkDef::Width); } int GetChunkZ(void) const { return FloorC(m_Position.z / cChunkDef::Width); } + cBoundingBox GetBoundingBox() const { return cBoundingBox(GetPosition(), GetWidth() / 2, GetHeight()); } + void SetHeadYaw (double a_HeadYaw); void SetMass (double a_Mass); void SetPosX (double a_PosX) { SetPosition({a_PosX, m_Position.y, m_Position.z}); } |