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)
Please login to continue.