diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 19:27:35 +0100 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 19:27:49 +0100 |
commit | 17909d029c6a8872b2fddf4e171d7925bbbe9c5c (patch) | |
tree | cbb08af84cd68d24acc362d593a2048b0fa79689 /Simulation/ContactListener.hpp |
Diffstat (limited to 'Simulation/ContactListener.hpp')
-rw-r--r-- | Simulation/ContactListener.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Simulation/ContactListener.hpp b/Simulation/ContactListener.hpp new file mode 100644 index 0000000..4b4d472 --- /dev/null +++ b/Simulation/ContactListener.hpp @@ -0,0 +1,16 @@ +#ifndef __CONTACTLISTENER_HPP__ +#define __CONTACTLISTENER_HPP__ + +#include <Box2D.h> + +class SimBase; + +class ContactListener : public b2ContactListener +{ +public: + void PreSolve(b2Contact *contact, const b2Manifold *oldManifold); + + SimBase *hSim = nullptr; +}; + +#endif // __CONTACTLISTENER_HPP__ |