mirror of
https://github.com/photonstorm/phaser
synced 2024-12-29 22:43:08 +00:00
29 lines
755 B
JavaScript
29 lines
755 B
JavaScript
/**
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
* @copyright 2016 Photon Storm Ltd.
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
*/
|
|
|
|
/**
|
|
* A P2 Material.
|
|
*
|
|
* \o/ ~ "Because I'm a Material girl"
|
|
*
|
|
* @class Phaser.Physics.P2.Material
|
|
* @constructor
|
|
* @param {string} name - The user defined name given to this Material.
|
|
*/
|
|
Phaser.Physics.P2.Material = function (name) {
|
|
|
|
/**
|
|
* @property {string} name - The user defined name given to this Material.
|
|
* @default
|
|
*/
|
|
this.name = name;
|
|
|
|
p2.Material.call(this);
|
|
|
|
};
|
|
|
|
Phaser.Physics.P2.Material.prototype = Object.create(p2.Material.prototype);
|
|
Phaser.Physics.P2.Material.prototype.constructor = Phaser.Physics.P2.Material;
|