mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Add Fixture:getNext()
--HG-- branch : box2d-update
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user