Physics.P2.FixtureList#flatten()

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 and splits polygons.

Parameters
Name Type Description
array array

The array to flatten. Notice: This will happen recursive not shallow.

Source code: physics/p2/FixtureList.js (Line 212)
doc_phaser
2017-02-14 11:04:32
Comments
Leave a Comment

Please login to continue.