Add Contact:getChildren (pull request #15)

This commit is contained in:
Bart van Strien
2013-05-10 17:40:04 +02:00
parent 402ae4638a
commit 0a422daa75
4 changed files with 21 additions and 0 deletions
+6
View File
@@ -126,6 +126,12 @@ void Contact::resetRestitution()
contact->ResetRestitution();
}
void Contact::getChildren(int &childA, int &childB)
{
childA = contact->GetChildIndexA();
childB = contact->GetChildIndexB();
}
} // box2d
} // physics
} // love