phaser/v3/merge/physics/p2/Material.js

30 lines
755 B
JavaScript
Raw Normal View History

2014-02-18 15:28:42 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
2016-04-04 21:15:01 +00:00
* @copyright 2016 Photon Storm Ltd.
2014-02-18 15:28:42 +00:00
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* A P2 Material.
*
2014-02-18 15:28:42 +00:00
* \o/ ~ "Because I'm a Material girl"
*
* @class Phaser.Physics.P2.Material
2014-02-18 15:28:42 +00:00
* @constructor
* @param {string} name - The user defined name given to this Material.
2014-02-18 15:28:42 +00:00
*/
Phaser.Physics.P2.Material = function (name) {
/**
* @property {string} name - The user defined name given to this Material.
* @default
*/
this.name = name;
2014-02-18 15:28:42 +00:00
p2.Material.call(this);
2014-03-23 06:31:26 +00:00
};
2014-02-18 15:28:42 +00:00
Phaser.Physics.P2.Material.prototype = Object.create(p2.Material.prototype);
Phaser.Physics.P2.Material.prototype.constructor = Phaser.Physics.P2.Material;