Physics.bounds now correctly matches World.bounds on system start (thanks @Dumtard #1028)

This commit is contained in:
photonstorm 2014-07-16 00:14:47 +01:00
parent afeeeecbe0
commit d72e199291
2 changed files with 3 additions and 0 deletions

View file

@ -58,6 +58,7 @@ Version 2.0.7 - "Amadicia" - -in development-
* The key is now reported when failing to parse a Sprite Sheet (thanks @lucbloom #1026)
* An editorconfig has been added to the core repo. See http://editorconfig.org (thanks @codevinksy #1027)
* Keyboard.processKeyPress now checks if the Keyboard Input handler is disabled or not before processing the key callbacks.
* Physics.bounds now correctly matches World.bounds on system start (thanks @Dumtard #1028)
### New Features

View file

@ -153,6 +153,8 @@ Phaser.Physics.prototype = {
throw new Error('The Chipmunk physics system has not been implemented yet.');
}
this.setBoundsToWorld();
},
/**