Sets the size of this physics body. Setting the size does not adjust the dimensions of the parent Game Object.
The new width of the physics body, in pixels.
The new height of the physics body, in pixels.
Optionalcenter: booleanShould the body be re-positioned so its center aligns with the parent Game Object? Default true.
Sets this physics body to use a circle for collision instead of a rectangle.
The radius of the physics body, in pixels.
OptionaloffsetX: numberThe amount to offset the body from the parent Game Object along the x-axis.
OptionaloffsetY: numberThe amount to offset the body from the parent Game Object along the y-axis.
Sets the body offset. This allows you to adjust the difference between the center of the body and the x and y coordinates of the parent Game Object.
The amount to offset the body from the parent Game Object along the x-axis.
Optionaly: numberThe amount to offset the body from the parent Game Object along the y-axis. Defaults to the value given for the x-axis. Default x.
DEPRECATED: Please use setBodySize instead.
Sets the size of this physics body. Setting the size does not adjust the dimensions of the parent Game Object.
The new width of the physics body, in pixels.
The new height of the physics body, in pixels.
Optionalcenter: booleanShould the body be re-positioned so its center aligns with the parent Game Object? Default true.
Provides methods for setting the size of an Arcade Physics Game Object. Should be applied as a mixin and not used directly.