2018-02-09 01:40:41 +00:00
|
|
|
/**
|
|
|
|
* [description]
|
|
|
|
*
|
|
|
|
* @name Phaser.Physics.Impact.Components.Debug
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-11-09 04:02:31 +00:00
|
|
|
var Debug = {
|
|
|
|
|
2018-02-09 01:40:41 +00:00
|
|
|
/**
|
|
|
|
* [description]
|
|
|
|
*
|
|
|
|
* @method Phaser.Physics.Impact.Components.Debug#setDebug
|
|
|
|
* @since 3.0.0
|
|
|
|
*
|
|
|
|
* @param {[type]} showBody - [description]
|
|
|
|
* @param {[type]} showVelocity - [description]
|
|
|
|
* @param {[type]} bodyColor - [description]
|
|
|
|
*
|
|
|
|
* @return {[type]} [description]
|
|
|
|
*/
|
2017-11-09 04:02:31 +00:00
|
|
|
setDebug: function (showBody, showVelocity, bodyColor)
|
|
|
|
{
|
|
|
|
this.debugShowBody = showBody;
|
|
|
|
this.debugShowVelocity = showVelocity;
|
|
|
|
this.debugBodyColor = bodyColor;
|
|
|
|
|
|
|
|
return this;
|
|
|
|
},
|
|
|
|
|
2018-02-09 01:40:41 +00:00
|
|
|
/**
|
|
|
|
* [description]
|
|
|
|
*
|
|
|
|
* @method Phaser.Physics.Impact.Components.Debug#setDebugBodyColor
|
|
|
|
* @since 3.0.0
|
|
|
|
*
|
|
|
|
* @param {[type]} value - [description]
|
|
|
|
*
|
|
|
|
* @return {[type]} [description]
|
|
|
|
*/
|
2017-11-09 04:02:31 +00:00
|
|
|
setDebugBodyColor: function (value)
|
|
|
|
{
|
|
|
|
this.body.debugBodyColor = value;
|
|
|
|
|
|
|
|
return this;
|
|
|
|
},
|
|
|
|
|
2018-02-09 01:40:41 +00:00
|
|
|
/**
|
|
|
|
* [description]
|
|
|
|
*
|
|
|
|
* @name Phaser.Physics.Impact.Components.Debug#debugShowBody
|
|
|
|
* @type {[type]}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-11-09 04:02:31 +00:00
|
|
|
debugShowBody: {
|
|
|
|
|
|
|
|
get: function ()
|
|
|
|
{
|
|
|
|
return this.body.debugShowBody;
|
|
|
|
},
|
|
|
|
|
|
|
|
set: function (value)
|
|
|
|
{
|
|
|
|
this.body.debugShowBody = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
2018-02-09 01:40:41 +00:00
|
|
|
/**
|
|
|
|
* [description]
|
|
|
|
*
|
|
|
|
* @name Phaser.Physics.Impact.Components.Debug#debugShowVelocity
|
|
|
|
* @type {[type]}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-11-09 04:02:31 +00:00
|
|
|
debugShowVelocity: {
|
|
|
|
|
|
|
|
get: function ()
|
|
|
|
{
|
|
|
|
return this.body.debugShowVelocity;
|
|
|
|
},
|
|
|
|
|
|
|
|
set: function (value)
|
|
|
|
{
|
|
|
|
this.body.debugShowVelocity = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
2018-02-09 01:40:41 +00:00
|
|
|
/**
|
|
|
|
* [description]
|
|
|
|
*
|
|
|
|
* @name Phaser.Physics.Impact.Components.Debug#debugBodyColor
|
|
|
|
* @type {[type]}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-11-09 04:02:31 +00:00
|
|
|
debugBodyColor: {
|
|
|
|
|
|
|
|
get: function ()
|
|
|
|
{
|
|
|
|
return this.body.debugBodyColor;
|
|
|
|
},
|
|
|
|
|
|
|
|
set: function (value)
|
|
|
|
{
|
|
|
|
this.body.debugBodyColor = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = Debug;
|