sm.body.getCreationsFromBodies

Returns a table of tables, which is an array of tables containing bodies grouped by creation.

Kind: Function

Environments: Game

Game

sm.body.getCreationsFromBodies( bodies )

Open the full Game reference

A creation includes all bodies connected by joints, etc.

Parameters:

Name Type Description
bodies table The bodies to find all creation bodies from. {Body, ...}

Returns:

Type Description
table The table array containing tables of all the bodies, grouped by creation. { {Body, ...}, ... }