Wait until the end of a physics update before destroying bodies (issue #193)

This commit is contained in:
Bart van Strien
2011-06-10 14:03:56 +02:00
parent da4c199467
commit fafe0d7039
5 changed files with 34 additions and 1 deletions
+5
View File
@@ -329,6 +329,11 @@ namespace box2d
return 2;
}
void Body::destroy()
{
world->destroyBody(this);
}
} // box2d
} // physics
} // love