22 #ifndef EZGL_COLLISION_HPP 23 #define EZGL_COLLISION_HPP 48 class Collision final :
public Component<Collision>
51 Collision() =
default;
52 ~Collision() =
default;
54 void init(Object &
self, Object &main);
55 void update(Object &
self, Object &main);
58 bool isCollision(Object
const &alpha, Object
const &bravo);
59 void undoTimestep(Object &alpha, Object &bravo, Object &main);
60 void resolveImpact(std::string
const &dim,
61 Object &alpha, Object &bravo, Object &main);
62 double getOverlap(Object &alpha, Object &bravo,
63 std::string
const &pos, std::string
const &dim);
65 static std::vector<Object*> Objects;
66 static long long time;
The base class to inherit from for all components.
#define EZGL_COMPONENT_ENLIST(Obj)
Enlist your custom component to the component factory.
Definition: ComponentFactory.hpp:43