Merge pull request #1492 from vlidholt/master

Handle removal of sprite physics bodies during the physics simulation
This commit is contained in:
Viktor Lidholt
2015-10-05 13:51:55 -07:00
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) {