1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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__