Body.getInteractables
Returns a table of all interactables that are part of a body.
Kind: Function
Environments: Game
Game
body:getInteractables( )
This will not return interactables in neighbouring bodies connected by joints, etc.
Parameters:
| Name | Type | Description |
|---|---|---|
body |
Body | The body. |
Returns:
| Type | Description |
|---|---|
| table | The table of interactables in a body. {Interactable, ...} |