aboutsummaryrefslogtreecommitdiff
path: root/Simulation/ContactListener.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Simulation/ContactListener.hpp')
-rw-r--r--Simulation/ContactListener.hpp16
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__