flatten(array) A helper to flatten arrays. This is very useful as the fixtures are nested from time to time due to the way P2 creates
createMaterial(name, body) → {
angularDamping : number Damping is specified as a value between 0 and 1, which is the proportion of velocity lost per second. The
setZeroRotation() If this Body is dynamic then this will zero its angular velocity. Source
setAll(key, value, checkAlive, checkVisible, operation, force)
removeChildren(beginIndex, endIndex) Removes all children from this container that are within the begin and end indexes.
y : number The y coordinate of this Body. Source code:
setCategory(bit, fixtureKey) Parameters Name Type Description
getLocalBounds() → {Rectangle} Retrieves the non-global local bounds of the displayObjectContainer
checkProperty(child, key, value, force) → {boolean} Checks a property
Page 27 of 35