Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MOD update box2D to revision 220

  • Loading branch information...
commit e4026e24d620533727197cfea17ceddf6cc9c22e 1 parent d3db831
unknown authored
Showing with 3 additions and 12 deletions.
  1. +3 −12 application/source/ContactListener.cpp
View
15 application/source/ContactListener.cpp
@@ -8,12 +8,12 @@
namespace Polukili
{
- void ContactListener::Add(const b2ContactPoint* point)
+ void ContactListener::BeginContact(b2Contact* contact)
{
Console::log(LOG_INFO, "hit");
- Actor* a1 = (Actor*)(point->fixtureA->GetBody()->GetUserData());
- Actor* a2 = (Actor*)(point->fixtureB->GetBody()->GetUserData());
+ Actor* a1 = (Actor*)(contact->GetFixtureA()->GetBody()->GetUserData());
+ Actor* a2 = (Actor*)(contact->GetFixtureB()->GetBody()->GetUserData());
Bullets::Bullet* bullet = dynamic_cast<Bullets::Bullet*>(a1);
Actor* actor = dynamic_cast<Actor*>(a2);
@@ -37,14 +37,5 @@ namespace Polukili
else
Console::log(LOG_INFO, "other hit");
}
-
- void ContactListener::Persist(const b2ContactPoint* point)
- {
- }
-
- void ContactListener::Remove(const b2ContactPoint* point)
- {
-
- }
}
Please sign in to comment.
Something went wrong with that request. Please try again.