mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Wait until the end of a physics update before destroying bodies (issue #193)
This commit is contained in:
@@ -329,6 +329,11 @@ namespace box2d
|
||||
return 2;
|
||||
}
|
||||
|
||||
void Body::destroy()
|
||||
{
|
||||
world->destroyBody(this);
|
||||
}
|
||||
|
||||
} // box2d
|
||||
} // physics
|
||||
} // love
|
||||
|
||||
Reference in New Issue
Block a user