Handle removal of sprite physics bodies during the physics simulation

This commit is contained in:
Viktor Lidholt
2015-10-05 13:47:51 -07:00
parent 071201a5bb
commit ab104c809d
3 changed files with 22 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ class TestBed extends NodeWithSize {
void myCallback(PhysicsContactType type, PhysicsContact contact) {
print("CONTACT type: $type");
contact.nodeB.removeFromParent();
}
bool handleEvent(SpriteBoxEvent event) {