aboutsummaryrefslogtreecommitdiff
path: root/Simulation/ContactListener.hpp
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 19:27:35 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 19:27:49 +0100
commit17909d029c6a8872b2fddf4e171d7925bbbe9c5c (patch)
treecbb08af84cd68d24acc362d593a2048b0fa79689 /Simulation/ContactListener.hpp
Initial commitHEADmaster
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__