Enables this Game Object's Body.
If you reset the Body you must also pass x
and y
.
name | type | arguments | description |
---|---|---|---|
reset | boolean | <optional> |
Also reset the Body and place the Game Object at (x, y). |
x | number | <optional> |
The horizontal position to place the Game Object, if |
y | number | <optional> |
The horizontal position to place the Game Object, if |
enableGameObject | boolean | <optional> |
Also set this Game Object's |
showGameObject | boolean | <optional> |
Also set this Game Object's |
This Game Object.
Stops and disables this Game Object's Body.
name | type | arguments | Default | description |
---|---|---|---|---|
disableGameObject | boolean | <optional> | false |
Also set this Game Object's |
hideGameObject | boolean | <optional> | false |
Also set this Game Object's |
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.