addFixture(fixtureData) → {array}
Add a polygon fixture. This is used during #loadPolygon.
Parameters
Name | Type | Description |
---|---|---|
fixtureData | string | The data for the fixture. It contains: isSensor, filter (collision) and the actual polygon shapes. |
Returns
array -
An array containing the generated shapes for the given polygon.
- Source code: physics/p2/Body.js (Line 1350)
Please login to continue.