setImpactEvents(state) Impact event handling is disabled by default. Enable it before any impact events will be dispatched.In
countDead() → {integer} Get the number of dead children in this group. Returns
getFurthestFrom(object, callback, callbackContext) → {any}
x : number The x coordinate of this Body. Source code:
new P2(game, config) This is your main access to the P2 Physics World.From here you can create materials
callAllExists(callback, existsValue, parameter) Calls a function, specified by name, on all children in the group who exist (or do not
resetCursor(index) → {any} Sets the group cursor to the first child
nothingCollisionGroup : Phaser.Physics
angularVelocity : number The angular velocity of the body. Source code:
classType : Object The type of objects that will be created when using
Page 19 of 35