getBodies() → {array.<Phaser.Physics.P2.Body>}
Populates and returns an array with references to of all current Bodies in the world.
Returns
array.<Phaser.Physics.P2.Body> -
An array containing all current Bodies in the world.
- Source code: physics/p2/World.js (Line 1266)
Please login to continue.