Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
CollisionCallback.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <ThirdParty/Box2D/Box2D/Box2D.h>
6 
7 namespace Engine
8 {
9  class CollisionSystem;
10 
11  class EntityContact : public b2ContactListener
12  {
13  void BeginContact(b2Contact* contact) override;
14 
15  void EndContact(b2Contact* contact) override;
16 
17  void GetEntities(b2Contact* contact);
18 
19  eastl::weak_ptr<Entity> entityA_;
20  eastl::weak_ptr<Entity> entityB_;
21  };
22 } // namespace Engine