Skip to content

Commit dff633c

Browse files
committed
Added the Bounce Matter component for an easier way to set restitution.
1 parent 2e11c18 commit dff633c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var Bounce = {
2+
3+
setBounce: function (value)
4+
{
5+
this.body.restitution = value;
6+
7+
return this;
8+
}
9+
10+
};
11+
12+
module.exports = Bounce;

0 commit comments

Comments
 (0)