Body.getShape
Returns a shape that is part of a body by index.
Kind: Function
Environments: Game
Game
body:getShape( index )
Parameters:
| Name | Type | Description |
|---|---|---|
body |
Body | The body. |
index |
integer | The index of the shape. |
Returns:
| Type | Description |
|---|---|
| Shape | The shape at the specified index, or nil if the index is out of range. |