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
Phaser.Physics.P2.ContactMaterial | boolean -
The Contact Material or false if none was found matching the Materials given.
- Source code: physics/p2/World.js (Line 1187)
Please login to continue.