Added the Mass Matter component to set the mass and density of a body.

This commit is contained in:
Richard Davey 2017-11-21 16:51:54 +00:00
parent a5e8d1e2d7
commit 93d246e948

View file

@ -0,0 +1,21 @@
var Body = require('../lib/body/Body');
var Mass = {
setMass: function (value)
{
Body.setMass(this.body, value);
return this;
},
setDensity: function (value)
{
Body.setDensity(this.body, value);
return this;
}
};
module.exports = Mass;