You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/physics/arcade/StaticBody.js
+17-7Lines changed: 17 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -520,15 +520,13 @@ var StaticBody = new Class({
520
520
*
521
521
* @param {integer} [width] - The width of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame width.
522
522
* @param {integer} [height] - The height of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame height.
523
-
* @param {number} [offsetX] - The horizontal offset of the Body from the Game Object's center.
524
-
* @param {number} [offsetY] - The vertical offset of the Body from the Game Object's center.
523
+
* @param {boolean} [center=true] - Modify the Body's `offset`, placing the Body's center on its Game Object's center. Only works if the Game Object has the `getCenter` method.
525
524
*
526
525
* @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.
0 commit comments