API Docs for: 0.7.1
Show:

Island Class

Defined in: src/world/Island.js:5

An island of bodies connected with equations.

Constructor

Island

()

Item Index

Properties

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.