Physics.P2#addContactMaterial()

addContactMaterial(material) → {Phaser.Physics.P2.ContactMaterial}

Adds a Contact Material to the world.

Parameters
Name Type Description
material Phaser.Physics.P2.ContactMaterial

The Contact Material to be added to the World.

Returns

The Contact Material that was added.

Source code: physics/p2/World.js (Line 1153)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.