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