Body.getShapes

Returns a table of all shapes that are part of a body.

Kind: Function

Environments: Game

Game

body:getShapes(  )

Open the full Game reference

This will not return shapes in neighbouring bodies connected by joints, etc.

Parameters:

Name Type Description
body Body The body.

Returns:

Type Description
table The table of shapes in a body. {Shape, ...}