From 17909d029c6a8872b2fddf4e171d7925bbbe9c5c Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 19:27:35 +0100 Subject: Initial commit --- Simulation/ContactListener.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Simulation/ContactListener.hpp (limited to 'Simulation/ContactListener.hpp') 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 + +class SimBase; + +class ContactListener : public b2ContactListener +{ +public: + void PreSolve(b2Contact *contact, const b2Manifold *oldManifold); + + SimBase *hSim = nullptr; +}; + +#endif // __CONTACTLISTENER_HPP__ -- cgit v1.2.1