1 #ifndef BLANK_WORLD_ENTITYCOLLISION_HPP_
2 #define BLANK_WORLD_ENTITYCOLLISION_HPP_
9 struct EntityCollision {
15 : depth(0.0f), normal(0.0f), entity(nullptr) { }
16 EntityCollision(Entity *e, float d, const glm::vec3 &n);
19 EntityCollision(const EntityCollision &);
20 EntityCollision &operator =(const EntityCollision &);
22 /// check if an actual collision
23 operator bool() const noexcept { return entity; }
25 Entity &GetEntity() noexcept { return *entity; }
26 const Entity &GetEntity() const noexcept { return *entity; }