Skip to content

Commit fa613c5

Browse files
committed
ScaleManager seeds _check private var with null to avoid later comparison check (thanks @jflowers45, fix phaserjs#782)
P2.Body.applyForce should have used pxmi instead of pxm (thanks @Trufi, fix phaserjs#776) P2 fixed creation of RevoluteConstraint by passing maxForce in the options (thanks @woutercommandeur, fix phaserjs#783)
1 parent edef6cc commit fa613c5

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ There is an extensive [Migration Guide](https://github.com/photonstorm/phaser/bl
66

77
### Updates
88

9-
* Updated to [Pixi.js 1.5.3](https://github.com/GoodBoyDigital/pixi.js/releases/tag/v1.5.3)
9+
* Updated to [Pixi.js 1.5.3](https://github.com/GoodBoyDigital/pixi.js/releases/tag/1.5.3)
1010
* Updated to latest [p2.js](https://github.com/schteppe/p2.js/commits/master) - all commits from 0.5.0 to Apr 27th 2014.
1111
* TypeScript definitions fixes and updates (thanks @clark-stevenson @metrofun @killalau)
1212
* Timer has removed all use of local temporary vars in the core update loop.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Version 2.0.5 - "Tanchico" - in development
6060

6161
### Bug Fixes
6262

63+
* ScaleManager seeds _check private var with null to avoid later comparison check (thanks @jflowers45, fix #782)
64+
* P2.Body.applyForce should have used pxmi instead of pxm (thanks @Trufi, fix #776)
65+
* P2 fixed creation of RevoluteConstraint by passing maxForce in the options (thanks @woutercommandeur, fix #783)
6366

6467

6568
There is an extensive [Migration Guide](https://github.com/photonstorm/phaser/blob/master/resources/Migration%20Guide.md) available for those converting from Phaser 1.x to 2.x. In the guide we detail the API breaking changes and approach to our new physics system.

src/core/ScaleManager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ Phaser.ScaleManager = function (game, width, height) {
218218
*/
219219
this._height = 0;
220220

221+
/**
222+
* @property {number} _check - Cached size interval var.
223+
* @private
224+
*/
225+
this._check = null;
226+
221227
var _this = this;
222228

223229
window.addEventListener('orientationchange', function (event) {

src/physics/p2/Body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ Phaser.Physics.P2.Body.prototype = {
425425
*/
426426
applyForce: function (force, worldX, worldY) {
427427

428-
this.data.applyForce(force, [this.world.pxm(worldX), this.world.pxm(worldY)]);
428+
this.data.applyForce(force, [this.world.pxmi(worldX), this.world.pxmi(worldY)]);
429429

430430
},
431431

0 commit comments

Comments
 (0)