1 #ifndef BLANK_WORLD_WORLDCOLLISION_HPP_
2 #define BLANK_WORLD_WORLDCOLLISION_HPP_
4 #include "BlockType.hpp"
12 struct WorldCollision {
20 WorldCollision(const Chunk *c, int b, float d, const glm::vec3 &n)
21 : chunk(c), block(b), depth(d), normal(n) { }
23 bool Blocks() const noexcept { return chunk->Type(block).collide_block; }
25 glm::vec3 BlockCoords() const noexcept { return Chunk::ToCoords(block); }