getFixtures(keys) Accessor to get either a list of specified fixtures by key or the whole fixture list Parameters
setSensor(value, fixtureKey) Parameters Name Type Description
parse() Parser for the output of Phaser.Physics.P2.Body#addPhaserPolygon Source
setMaterial(material, fixtureKey) Parameters Name Type Description
setMask(bit, fixtureKey) Parameters Name Type Description
getFixtureByKey(key) Accessor to get either a single fixture by its key. Parameters
getGroup(groupID) Accessor to get a group of fixtures by its group index. Parameters
init() Source code:
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
setCategory(bit, fixtureKey) Parameters Name Type Description
Page 1 of 2