File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ var ImpactBody = new Class({
1111 Components . CheckAgainst ,
1212 Components . Collides ,
1313 Components . Debug ,
14+ Components . Friction ,
1415 Components . Gravity ,
1516 Components . Offset ,
1617 Components . SetGameObject ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ var ImpactImage = new Class({
1414 Components . CheckAgainst ,
1515 Components . Collides ,
1616 Components . Debug ,
17+ Components . Friction ,
1718 Components . Gravity ,
1819 Components . Offset ,
1920 Components . SetGameObject ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ var ImpactSprite = new Class({
1414 Components . CheckAgainst ,
1515 Components . Collides ,
1616 Components . Debug ,
17+ Components . Friction ,
1718 Components . Gravity ,
1819 Components . Offset ,
1920 Components . SetGameObject ,
Original file line number Diff line number Diff line change 1+ var Friction = {
2+
3+ setFrictionX : function ( x )
4+ {
5+ this . friction . x = x ;
6+
7+ return this ;
8+ } ,
9+
10+ setFrictionY : function ( y )
11+ {
12+ this . friction . y = y ;
13+
14+ return this ;
15+ } ,
16+
17+ setFriction : function ( x , y )
18+ {
19+ this . friction . x = x ;
20+ this . friction . y = y ;
21+
22+ return this ;
23+ }
24+
25+ } ;
26+
27+ module . exports = Friction ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module.exports = {
88 CheckAgainst : require ( './CheckAgainst' ) ,
99 Collides : require ( './Collides' ) ,
1010 Debug : require ( './Debug' ) ,
11+ Friction : require ( './Friction' ) ,
1112 Gravity : require ( './Gravity' ) ,
1213 Offset : require ( './Offset' ) ,
1314 SetGameObject : require ( './SetGameObject' ) ,
You can’t perform that action at this time.
0 commit comments