77var Body = require ( '../lib/body/Body' ) ;
88
99/**
10- * [description]
10+ * A component to apply force to Matter.js bodies.
1111 *
1212 * @name Phaser.Physics.Matter.Components.Force
1313 * @since 3.0.0
1414 */
1515var Force = {
1616
1717 // force = vec2 / point
18+
1819 /**
19- * [description]
20+ * Applies a force to a body.
2021 *
2122 * @method Phaser.Physics.Matter.Components.Force#applyForce
2223 * @since 3.0.0
2324 *
24- * @param {Phaser.Math.Vector2 } force - [description]
25+ * @param {Phaser.Math.Vector2 } force - A Vector that specifies the force to apply.
2526 *
2627 * @return {Phaser.GameObjects.GameObject } This Game Object.
2728 */
@@ -35,13 +36,13 @@ var Force = {
3536 } ,
3637
3738 /**
38- * [description]
39+ * Applies a force to a body from a given position.
3940 *
4041 * @method Phaser.Physics.Matter.Components.Force#applyForceFrom
4142 * @since 3.0.0
4243 *
43- * @param {Phaser.Math.Vector2 } position - [description]
44- * @param {Phaser.Math.Vector2 } force - [description]
44+ * @param {Phaser.Math.Vector2 } position - The position in which the force comes from.
45+ * @param {Phaser.Math.Vector2 } force - A Vector that specifies the force to apply.
4546 *
4647 * @return {Phaser.GameObjects.GameObject } This Game Object.
4748 */
@@ -53,12 +54,12 @@ var Force = {
5354 } ,
5455
5556 /**
56- * [description]
57+ * Apply thrust to the forward position of the body.
5758 *
5859 * @method Phaser.Physics.Matter.Components.Force#thrust
5960 * @since 3.0.0
6061 *
61- * @param {number } speed - [description]
62+ * @param {number } speed - A speed value to be applied to a directional force.
6263 *
6364 * @return {Phaser.GameObjects.GameObject } This Game Object.
6465 */
@@ -74,12 +75,12 @@ var Force = {
7475 } ,
7576
7677 /**
77- * [description]
78+ * Apply thrust to the left position of the body.
7879 *
7980 * @method Phaser.Physics.Matter.Components.Force#thrustLeft
8081 * @since 3.0.0
8182 *
82- * @param {number } speed - [description]
83+ * @param {number } speed - A speed value to be applied to a directional force.
8384 *
8485 * @return {Phaser.GameObjects.GameObject } This Game Object.
8586 */
@@ -95,12 +96,12 @@ var Force = {
9596 } ,
9697
9798 /**
98- * [description]
99+ * Apply thrust to the right position of the body.
99100 *
100101 * @method Phaser.Physics.Matter.Components.Force#thrustRight
101102 * @since 3.0.0
102103 *
103- * @param {number } speed - [description]
104+ * @param {number } speed - A speed value to be applied to a directional force.
104105 *
105106 * @return {Phaser.GameObjects.GameObject } This Game Object.
106107 */
@@ -116,12 +117,12 @@ var Force = {
116117 } ,
117118
118119 /**
119- * [description]
120+ * Apply thrust to the back position of the body.
120121 *
121122 * @method Phaser.Physics.Matter.Components.Force#thrustBack
122123 * @since 3.0.0
123124 *
124- * @param {number } speed - [description]
125+ * @param {number } speed - A speed value to be applied to a directional force.
125126 *
126127 * @return {Phaser.GameObjects.GameObject } This Game Object.
127128 */
0 commit comments