Skip to content

Commit f48c808

Browse files
Merge remote-tracking branch 'origin/master'
2 parents c1b0bc4 + 8afa631 commit f48c808

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

v3/src/physics/matter-js/MatterImage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,

v3/src/physics/matter-js/MatterSprite.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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;

v3/src/physics/matter-js/components/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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'),

0 commit comments

Comments
 (0)