Docs: StaticBody#reset description

This commit is contained in:
samme 2023-08-22 08:48:01 -07:00 committed by GitHub
parent 9080dbf1fd
commit 90799f39ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -690,7 +690,10 @@ var StaticBody = new Class({
}, },
/** /**
* Resets this Body to the given coordinates. Also positions its parent Game Object to the same coordinates. * Resets this Static Body to its parent Game Object's position.
*
* If `x` and `y` are given, the parent Game Object is placed there and this Static Body is centered on it.
* Otherwise this Static Body is centered on the Game Object's current position.
* *
* @method Phaser.Physics.Arcade.StaticBody#reset * @method Phaser.Physics.Arcade.StaticBody#reset
* @since 3.0.0 * @since 3.0.0