Physics.P2.Body#addFixture()

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)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.