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/Body.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1076,7 +1076,7 @@ var Body = new Class({
1076
1076
*
1077
1077
* @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.
1078
1078
* @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.
1079
-
* @param {boolean} [center=true] - Modify the Body's `offset`, placing the Body's center on its Game Object's center.
1079
+
* @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.
1080
1080
*
1081
1081
* @return {Phaser.Physics.Arcade.Body} This Body object.
0 commit comments