new ContactMaterial(materialA, materialB, options)
Defines a physics material
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
materialA |
Phaser.Physics.P2.Material | First material participating in the contact material. |
|
materialB |
Phaser.Physics.P2.Material | Second material participating in the contact material. |
|
options |
object |
<optional> |
Additional configuration options. |
- Source: