Disabled World bounds by default.

Body.collides now takes a group level callback.
Added Body.createBodyCallback and Body.createGroupCallback.
This commit is contained in:
photonstorm
2014-02-19 05:22:37 +00:00
parent f6807e23c6
commit d9080052c3
5 changed files with 279 additions and 40 deletions
-2
View File
@@ -903,11 +903,9 @@ Object.defineProperty(Phaser.Sprite.prototype, "exists", {
{
// exists = false
this._cache[6] = 0;
console.log('exists false');
if (this.body)
{
console.log('exists false remove from world');
this.body.removeFromWorld();
}