Physics.P2.ContactMaterial#ContactMaterial

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 code: physics/p2/ContactMaterial.js (Line 16)
doc_phaser
2017-02-14 11:04:29
Comments
Leave a Comment

Please login to continue.