From 13c27064a8b2ee1faa7418e37ab2895993c67675 Mon Sep 17 00:00:00 2001 From: samme Date: Fri, 25 Sep 2020 14:19:12 -0700 Subject: [PATCH 1/2] Docs: Arcade.Body#reset Only game object receives the passed coordinates --- src/physics/arcade/Body.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/physics/arcade/Body.js b/src/physics/arcade/Body.js index d5126409d..84f5c60c5 100644 --- a/src/physics/arcade/Body.js +++ b/src/physics/arcade/Body.js @@ -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) { From d0f6070e14746e34cbcf5a87db2a989f80b3cb2d Mon Sep 17 00:00:00 2001 From: samme Date: Fri, 25 Sep 2020 14:37:26 -0700 Subject: [PATCH 2/2] Docs: Arcade.Body#setOffset --- src/physics/arcade/Body.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/physics/arcade/Body.js b/src/physics/arcade/Body.js index 84f5c60c5..6be2cb416 100644 --- a/src/physics/arcade/Body.js +++ b/src/physics/arcade/Body.js @@ -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