[FEATURE] collisions!!!!!!!!!!! YAY

This commit is contained in:
Menno
2021-05-28 15:45:46 +02:00
parent 28400fb320
commit e8b3e1b482
9 changed files with 166 additions and 38 deletions

View File

@@ -10,7 +10,7 @@ namespace entities
*/
class CollisionEntity : public Entity
{
private:
public:
collision::Box bounding_box;
glm::vec3 min_xyz;
@@ -54,5 +54,12 @@ namespace entities
*/
void SetCollisionBehaviour(void (*function)(const collision::Collision& collision))
{ if (function != nullptr) { on_collide = function; } }
protected:
/*
* @brief: This method moves the collision to the center of the entity
*/
void MoveCollisionBox();
};
}