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
* Sets the body's horizontal and vertical acceleration. If the vertical acceleration value is not provided, the vertical acceleration is set to the same value as the horizontal acceleration.
Copy file name to clipboardExpand all lines: src/physics/arcade/components/Friction.js
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,21 +5,22 @@
5
5
*/
6
6
7
7
/**
8
-
* [description]
8
+
* Sets the friction (e.g. the amount of velocity reduced over time) of the physics body when moving horizontally in the X axis. The higher than friction, the faster the body will slow down once force stops being applied to it.
9
9
*
10
10
* @name Phaser.Physics.Arcade.Components.Friction
11
11
* @since 3.0.0
12
12
*/
13
13
varFriction={
14
14
15
15
/**
16
-
* [description]
16
+
* Sets the friction (e.g. the amount of velocity reduced over time) of the physics body when moving.
17
+
* The higher than friction, the faster the body will slow down once force stops being applied to it.
Copy file name to clipboardExpand all lines: src/physics/arcade/components/Gravity.js
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,21 +5,24 @@
5
5
*/
6
6
7
7
/**
8
-
* [description]
8
+
* Provides methods for setting the gravity properties of an Arcade Physics Game Object.
9
+
* Should be applied as a mixin and not used directly.
9
10
*
10
11
* @name Phaser.Physics.Arcade.Components.Gravity
11
12
* @since 3.0.0
12
13
*/
13
14
varGravity={
14
15
15
16
/**
16
-
* [description]
17
+
* Set the X and Y values of the gravitational pull to act upon this Arcade Physics Game Object. Values can be positive or negative. Larger values result in a stronger effect.
18
+
*
19
+
* If only one value is provided, this value will be used for both the X and Y axis.
0 commit comments