Constructor
new Body(game, x, y)
Creates a physics body.
Parameters:
| Name | Type | Description |
|---|---|---|
game |
Carrot.Game | The core game object. |
x |
integer | X position relative to the sprite. |
y |
integer | Y position relative the sprite. |