Sets this Body's parent Game Object to the given coordinates and resets this Body at the new coordinates. If the Body had any velocity or acceleration it is lost as a result of calling this.
name | type | description |
---|---|---|
x | number |
The horizontal position to place the Game Object. |
y | number |
The vertical position to place the Game Object. |