#ifndef PHYSICS_BODY_H #define PHYSICS_BODY_H #include "entity.h" #include class Game; class PhysicsBodyComponent : public Component { public: void receive(Game& game, Entity& entity, const Message& msg); void tick(Game& game, Entity& entity, double dt); void detectCollision(Game& game, Entity& entity, Entity& collider, std::pair old_position); protected: std::pair velocity; std::pair accel; }; #endif