Resets this Body to the given coordinates. Also positions its parent Game Object to the same coordinates.
name | type | arguments | description |
---|---|---|---|
x | number | <optional> |
The x coordinate to reset the body to. If not given will use the parent Game Object's coordinate. |
y | number | <optional> |
The y coordinate to reset the body to. If not given will use the parent Game Object's coordinate. |