mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Body.reset now resets the Body.speed value to zero.
This commit is contained in:
parent
8dec37107e
commit
d710caed9e
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue