File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ var MatterImage = new Class({
1515 Components . Collision ,
1616 Components . Force ,
1717 Components . Friction ,
18+ Components . Gravity ,
1819 Components . Mass ,
1920 Components . Sensor ,
2021 Components . Sleep ,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ var MatterSprite = new Class({
1616 Components . Collision ,
1717 Components . Force ,
1818 Components . Friction ,
19+ Components . Gravity ,
1920 Components . Mass ,
2021 Components . Sensor ,
2122 Components . Sleep ,
Original file line number Diff line number Diff line change 1+ var Gravity = {
2+
3+ setIgnoreGravity : function ( value )
4+ {
5+ this . body . ignoreGravity = value ;
6+
7+ return this ;
8+ }
9+
10+ } ;
11+
12+ module . exports = Gravity ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module.exports = {
66 Collision : require ( './Collision' ) ,
77 Force : require ( './Force' ) ,
88 Friction : require ( './Friction' ) ,
9+ Gravity : require ( './Gravity' ) ,
910 Mass : require ( './Mass' ) ,
1011 Static : require ( './Static' ) ,
1112 Sensor : require ( './Sensor' ) ,
You can’t perform that action at this time.
0 commit comments