Body.reset now resets the Body.speed value to zero.

This commit is contained in:
photonstorm 2015-02-05 05:12:31 +00:00
parent 8dec37107e
commit d710caed9e
2 changed files with 2 additions and 0 deletions

View file

@ -82,6 +82,7 @@ Version 2.3.0 - "Tarabon" - in dev
* Lots of JSDocs fixes (thanks @vulvulune @micahjohnston @Marchys)
* TilemapLayer.getTiles now returns a copy of the Tiles found by the method, rather than references to the original Tile objects, so you're free to modify them without corrupting the source (thanks @Leekao #1585)
* Sprite.events.onDragStart has 2 new parameters `x` and `y` which is the position of the Sprite before the drag was started. The full list of parameters is: `(sprite, pointer, x, y)`. This allows you to retain the position of the Sprite prior to dragging should `dragFromCenter` have been enabled (thanks @vulvulune #1583)
* Body.reset now resets the Body.speed value to zero.
### Bug Fixes

View file

@ -618,6 +618,7 @@ Phaser.Physics.Arcade.Body.prototype = {
this.velocity.set(0);
this.acceleration.set(0);
this.speed = 0;
this.angularVelocity = 0;
this.angularAcceleration = 0;