You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/physics/arcade/Body.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -124,13 +124,13 @@ Phaser.Physics.Arcade.Body = function (sprite) {
124
124
this.drag=newPhaser.Point();
125
125
126
126
/**
127
-
* @property {boolean} allowGravity - Allow this Body to be influenced by world gravity?
127
+
* @property {boolean} allowGravity - Allow this Body to be influenced by gravity? Either world or local.
128
128
* @default
129
129
*/
130
130
this.allowGravity=true;
131
131
132
132
/**
133
-
* @property {Phaser.Point} gravity - A local gravity applied to this Body. If set this over-rides any world gravity.
133
+
* @property {Phaser.Point} gravity - A local gravity applied to this Body. If non-zero this overrides any world gravity, unless Body.allowGravity is set to false.
0 commit comments