setting bound as public and add velocity with a if instead of a try/catch

This commit is contained in:
Bluub
2021-05-31 17:36:48 +02:00
parent 4d0621a987
commit e1b1f0a5a4
5 changed files with 23 additions and 74 deletions
+7 -7
View File
@@ -11,15 +11,15 @@
namespace BBM
{
//! @brief A system to handle collisions.
class CollisionSystem : public WAL::System
{
//! @brief A system to handle collisions.
class CollisionSystem : public WAL::System
{
private:
//! @brief reference to the ECS engine to get other entities
WAL::Wal &_wal;
public:
//! @inherit
void onFixedUpdate(WAL::Entity &entity) override;
public:
//! @inherit
void onFixedUpdate(WAL::Entity &entity) override;
//! @brief A default constructor
CollisionSystem(WAL::Wal &wal);
@@ -29,5 +29,5 @@ namespace BBM
~CollisionSystem() override = default;
//! @brief A Collision system is assignable.
CollisionSystem &operator=(const CollisionSystem &) = default;
};
};
}