Add Fixture:getNext()

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-24 12:32:28 -04:00
parent c705063597
commit e962891ba2
4 changed files with 26 additions and 0 deletions
+9
View File
@@ -133,6 +133,15 @@ namespace box2d
{
return shape;
}
Fixture * Fixture::getNext() const
{
b2Fixture * f = fixture->GetNext();
if (!f) return NULL;
Fixture * fix = (Fixture *)Memoizer::find(f);
if (!fix) fix = new Fixture(f);
return fix;
}
void Fixture::setFilterData(int * v)
{