phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.
35 lines (29 loc) • 714 B
JavaScript
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* [description]
*
* @name Phaser.Physics.Arcade.Components.Mass
* @since 3.0.0
*/
var Mass = {
/**
* [description]
*
* @method Phaser.Physics.Arcade.Components.Mass#setMass
* @since 3.0.0
*
* @param {number} value - [description]
*
* @return {Phaser.GameObjects.GameObject} This Game Object.
*/
setMass: function (value)
{
this.body.mass = value;
return this;
}
};
module.exports = Mass;