Added the Bounce Matter component for an easier way to set restitution.

This commit is contained in:
Richard Davey 2017-11-21 16:52:54 +00:00
parent 2e11c18470
commit dff633cc62

View file

@ -0,0 +1,12 @@
var Bounce = {
setBounce: function (value)
{
this.body.restitution = value;
return this;
}
};
module.exports = Bounce;