Fixed which body to send

This commit is contained in:
Robin Engman 2014-02-12 10:57:55 +01:00
parent 0d643a890d
commit 5d29979875
1 changed files with 2 additions and 2 deletions

View File

@ -35,13 +35,13 @@ namespace Oyster
if(colObj0->m_collisionObject == &body) if(colObj0->m_collisionObject == &body)
{ {
pt = cp.m_localPointA; pt = cp.m_localPointA;
this->func((ICustomBody*)(colObj0->getCollisionObject()->getUserPointer()), this->args); this->func((ICustomBody*)(colObj1->getCollisionObject()->getUserPointer()), this->args);
} }
else else
{ {
assert(colObj1->m_collisionObject == &body && "Body does not match either collision object"); assert(colObj1->m_collisionObject == &body && "Body does not match either collision object");
pt = cp.m_localPointB; pt = cp.m_localPointB;
this->func((ICustomBody*)(colObj1->getCollisionObject()->getUserPointer()), this->args); this->func((ICustomBody*)(colObj0->getCollisionObject()->getUserPointer()), this->args);
} }
return 0; return 0;