Physics.P2#getContactMaterial()

getContactMaterial(materialA, materialB) → {Phaser.Physics.P2.ContactMaterial | boolean}

Gets a Contact Material based on the two given Materials.

Parameters
Name Type Description
materialA Phaser.Physics.P2.Material

The first Material to search for.

materialB Phaser.Physics.P2.Material

The second Material to search for.

Returns

The Contact Material or false if none was found matching the Materials given.

Source code: physics/p2/World.js (Line 1187)
doc_phaser
2017-02-14 11:01:10
Comments
Leave a Comment

Please login to continue.