Skip to content

Commit 4785953

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents 09c2a2d + 30b514f commit 4785953

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/physics/arcade/Body.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,7 @@ var Body = new Class({
12381238

12391239
/**
12401240
* Sets the offset of the Body's position from its Game Object's position.
1241+
* The Body's `position` isn't changed until the next `preUpdate`.
12411242
*
12421243
* @method Phaser.Physics.Arcade.Body#setOffset
12431244
* @since 3.0.0
@@ -1252,7 +1253,6 @@ var Body = new Class({
12521253
if (y === undefined) { y = x; }
12531254

12541255
this.offset.set(x, y);
1255-
this.updateCenter();
12561256

12571257
return this;
12581258
},
@@ -1356,14 +1356,14 @@ var Body = new Class({
13561356
},
13571357

13581358
/**
1359-
* Resets this Body to the given coordinates. Also positions its parent Game Object to the same coordinates.
1359+
* Sets this Body's parent Game Object to the given coordinates and resets this Body at the new coordinates.
13601360
* If the Body had any velocity or acceleration it is lost as a result of calling this.
13611361
*
13621362
* @method Phaser.Physics.Arcade.Body#reset
13631363
* @since 3.0.0
13641364
*
1365-
* @param {number} x - The horizontal position to place the Game Object and Body.
1366-
* @param {number} y - The vertical position to place the Game Object and Body.
1365+
* @param {number} x - The horizontal position to place the Game Object.
1366+
* @param {number} y - The vertical position to place the Game Object.
13671367
*/
13681368
reset: function (x, y)
13691369
{

0 commit comments

Comments
 (0)