impulse list and velocity for physics
This commit is contained in:
@@ -65,6 +65,16 @@ private:
|
||||
void CreateBody(EntityID entity);
|
||||
|
||||
|
||||
struct Impulse
|
||||
{
|
||||
b2Body* Body;
|
||||
b2Vec2 Impulse;
|
||||
b2Vec2 Point;
|
||||
};
|
||||
std::list<Impulse> m_Impulses;
|
||||
|
||||
|
||||
|
||||
class ContactListener : public b2ContactListener
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user