Sets the offset of the Body's position from its Game Object's position.
The Body's position
isn't changed until the next preUpdate
.
name | type | arguments | Default | description |
---|---|---|---|---|
x | number |
The horizontal offset, in source pixels. |
||
y | number | <optional> | x |
The vertical offset, in source pixels. |
This Body object.