X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FChunk.hpp;h=67794145290ea8adcbaef3dc00618f0122cb93d6;hb=fcdce6d72f97d4749c0f120e22e8be00e88ebc6e;hp=045f58df7d6ac29f1140fea27849cc212aea5e30;hpb=ab0ba4313c473378b4516e3702d524dc1d1fc5d4;p=blank.git diff --git a/src/world/Chunk.hpp b/src/world/Chunk.hpp index 045f58d..6779414 100644 --- a/src/world/Chunk.hpp +++ b/src/world/Chunk.hpp @@ -144,6 +144,8 @@ public: /// get gravity for one unit mass at given point glm::vec3 GravityAt(const ExactLocation &) const noexcept; + /// check if given ray passes this chunk at all + /// given reference indicates the chunk offset of the ray in world space bool Intersection( const Ray &ray, const ExactLocation::Coarse &reference, @@ -153,12 +155,13 @@ public: } /// check if given ray intersects any block of this chunk - /// given reference indicated the chunk offset of the ray in world space + /// given reference indicates the chunk offset of the ray in world space bool Intersection( const Ray &, const ExactLocation::Coarse &reference, WorldCollision &) noexcept; + /// get all blocks intersecting given box bool Intersection( const AABB &box, const glm::mat4 &Mbox,