mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Use Box2D's callbacks for destruction of physics objects and wait until the end of the timestep before destroying them.
Merge of box2d-id2 from love-experiments
This commit is contained in:
@@ -56,6 +56,7 @@ namespace box2d
|
||||
friend class CircleShape;
|
||||
friend class PolygonShape;
|
||||
friend class Shape;
|
||||
friend class Fixture;
|
||||
|
||||
private:
|
||||
|
||||
@@ -386,7 +387,7 @@ namespace box2d
|
||||
int getFixtureList(lua_State * L) const;
|
||||
|
||||
/**
|
||||
* Mark the body for destruction
|
||||
* Destroy this body.
|
||||
**/
|
||||
void destroy();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user