Enables this Game Object's Body.
name | type | description |
---|---|---|
reset | boolean |
Also reset the Body and place it at (x, y). |
x | number |
The horizontal position to place the Game Object and Body. |
y | number |
The horizontal position to place the Game Object and Body. |
enableGameObject | boolean |
Also activate this Game Object. |
showGameObject | boolean |
Also show this Game Object. |
This Game Object.
Stops and disables this Game Object's Body.
name | type | arguments | Default | description |
---|---|---|---|---|
disableGameObject | boolean | <optional> | false |
Also deactivate this Game Object. |
hideGameObject | boolean | <optional> | false |
Also hide this Game Object. |
This Game Object.
Syncs the Body's position and size with its parent Game Object. You don't need to call this for Dynamic Bodies, as it happens automatically. But for Static bodies it's a useful way of modifying the position of a Static Body in the Physics World, based on its Game Object.
This Game Object.