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}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2014-09-16 16:35:08 +00:00
|
|
|
* A P2 Material.
|
|
|
|
*
|
2014-02-18 15:28:42 +00:00
|
|
|
* \o/ ~ "Because I'm a Material girl"
|
|
|
|
*
|
2014-03-05 02:36:08 +00:00
|
|
|
* @class Phaser.Physics.P2.Material
|
2014-02-18 15:28:42 +00:00
|
|
|
* @constructor
|
2014-09-16 16:35:08 +00:00
|
|
|
* @param {string} name - The user defined name given to this Material.
|
2014-02-18 15:28:42 +00:00
|
|
|
*/
|
2014-03-05 02:36:08 +00:00
|
|
|
Phaser.Physics.P2.Material = function (name) {
|
2014-02-18 16:37:53 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
2014-03-05 02:36:08 +00:00
|
|
|
Phaser.Physics.P2.Material.prototype = Object.create(p2.Material.prototype);
|
|
|
|
Phaser.Physics.P2.Material.prototype.constructor = Phaser.Physics.P2.Material;
|