]> git.localhorst.tv Git - blank.git/blob - src/world/WorldCollision.hpp
collect collisions for each entity
[blank.git] / src / world / WorldCollision.hpp
1 #ifndef BLANK_WORLD_WORLDCOLLISION_HPP_
2 #define BLANK_WORLD_WORLDCOLLISION_HPP_
3
4 #include <glm/glm.hpp>
5
6
7 namespace blank {
8
9 class Chunk;
10
11 struct WorldCollision {
12
13         const Chunk *chunk;
14         int block;
15
16         float depth;
17         glm::vec3 normal;
18
19         WorldCollision(const Chunk *c, int b, float d, const glm::vec3 &n)
20         : chunk(c), block(b), depth(d), normal(n) { }
21
22 };
23
24 }
25
26 #endif