X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FChunk.hpp;fp=src%2Fworld%2FChunk.hpp;h=e8773faa5dbf84691d9fbbcf054c796c6e1a6bcc;hb=ee920127d653b8a3cfbee1efefde909ffa177662;hp=6e87a0907d15059cea8b15e5255022b333b4c12b;hpb=fae1305b5783ce7a59ab1d4f44e199bd2bda1f45;p=blank.git diff --git a/src/world/Chunk.hpp b/src/world/Chunk.hpp index 6e87a09..e8773fa 100644 --- a/src/world/Chunk.hpp +++ b/src/world/Chunk.hpp @@ -30,6 +30,8 @@ public: static constexpr int size = side * side * side; static AABB Bounds() noexcept { return AABB{ { 0.0f, 0.0f, 0.0f }, ExactLocation::FExtent() }; } + static glm::vec3 Center() noexcept { return glm::vec3(8.0f); } + static float Radius() noexcept { return 27.71281292110203669632f; /* 16 * √3 */ } static constexpr bool InBounds(const ExactLocation::Fine &pos) noexcept { return