Physics.P2.ContactMaterial

Class: Phaser.Physics.P2.ContactMaterial

Constructor

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)

© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.Physics.P2.ContactMaterial.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部