bounding of box collision in the collisionComponent

This commit is contained in:
Bluub
2021-05-31 13:06:03 +02:00
parent c2588696fa
commit 79aa4cc86c
5 changed files with 207 additions and 0 deletions
@@ -0,0 +1,32 @@
//
// Created by Louis Auzuret on 5/20/21
//
#pragma once
#include <algorithm>
#include "Wal.hpp"
#include "System/System.hpp"
namespace BBM
{
//! @brief A system to handle collisions.
class CollisionSystem : public WAL::System
{
private:
WAL::Wal &_wal;
public:
//! @inherit
void onFixedUpdate(WAL::Entity &entity) override;
//! @brief A default constructor
CollisionSystem(WAL::Wal &wal);
//! @brief A movable system is copy constructable
CollisionSystem(const CollisionSystem &) = default;
//! @brief A default destructor
~CollisionSystem() override = default;
//! @brief A movable system is assignable.
CollisionSystem &operator=(const CollisionSystem &) = default;
};
}