Island Class
An island of bodies connected with equations.
Constructor
Island
()
Methods
getBodies
()
Array
Get all unique bodies in this island.
Returns:
Array:
An array of Body
reset
()
Clean this island from bodies and equations.
sleep
()
Make all bodies in the island sleep.
wantsToSleep
()
Boolean
Check if the entire island wants to sleep.
Returns:
Boolean:
Properties
bodies
Array
Current bodies in this island.
equations
Array
Current equations in this island.