X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FChunk.hpp;fp=src%2Fworld%2FChunk.hpp;h=4938c1b1a7a92f3f34c861e30287ca23491c6686;hb=e20be973f6ef23164ae54398088e1b14d9bac3ab;hp=e8773faa5dbf84691d9fbbcf054c796c6e1a6bcc;hpb=ee920127d653b8a3cfbee1efefde909ffa177662;p=blank.git diff --git a/src/world/Chunk.hpp b/src/world/Chunk.hpp index e8773fa..4938c1b 100644 --- a/src/world/Chunk.hpp +++ b/src/world/Chunk.hpp @@ -14,6 +14,7 @@ namespace blank { class BlockType; +class Entity; class WorldCollision; /// cube of size 16 (256 tiles, 4096 blocks) @@ -146,6 +147,12 @@ public: const glm::mat4 &Mchunk, std::vector &) noexcept; + bool Intersection( + const Entity &entity, + const glm::mat4 &Mentity, + const glm::mat4 &Mchunk, + std::vector &) noexcept; + void Position(const ExactLocation::Coarse &pos) noexcept { position = pos; } const ExactLocation::Coarse &Position() const noexcept { return position; } glm::mat4 Transform(const ExactLocation::Coarse &offset) const noexcept {