mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Merge branch 'master' of https://github.com/photonstorm/phaser
This commit is contained in:
commit
4785953368
1 changed files with 4 additions and 4 deletions
|
@ -1238,6 +1238,7 @@ var Body = new Class({
|
|||
|
||||
/**
|
||||
* Sets the offset of the Body's position from its Game Object's position.
|
||||
* The Body's `position` isn't changed until the next `preUpdate`.
|
||||
*
|
||||
* @method Phaser.Physics.Arcade.Body#setOffset
|
||||
* @since 3.0.0
|
||||
|
@ -1252,7 +1253,6 @@ var Body = new Class({
|
|||
if (y === undefined) { y = x; }
|
||||
|
||||
this.offset.set(x, y);
|
||||
this.updateCenter();
|
||||
|
||||
return this;
|
||||
},
|
||||
|
@ -1356,14 +1356,14 @@ var Body = new Class({
|
|||
},
|
||||
|
||||
/**
|
||||
* Resets this Body to the given coordinates. Also positions its parent Game Object to the same coordinates.
|
||||
* Sets this Body's parent Game Object to the given coordinates and resets this Body at the new coordinates.
|
||||
* If the Body had any velocity or acceleration it is lost as a result of calling this.
|
||||
*
|
||||
* @method Phaser.Physics.Arcade.Body#reset
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {number} x - The horizontal position to place the Game Object and Body.
|
||||
* @param {number} y - The vertical position to place the Game Object and Body.
|
||||
* @param {number} x - The horizontal position to place the Game Object.
|
||||
* @param {number} y - The vertical position to place the Game Object.
|
||||
*/
|
||||
reset: function (x, y)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue