sm.body.getAllBodies
Returns a table with all the bodies in the world.
Kind: Function
Environments: Game
Game
sm.body.getAllBodies( world )
Parameters:
| Name | Type | Description |
|---|---|---|
world (optional) |
World | The world, will default to the script's world. (optional) |
Returns:
| Type | Description |
|---|---|
| table | The table of all bodies. {Body, ...} |