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
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ Phaser.Physics.Arcade.Body = function (sprite) {
78
78
this.allowRotation=true;
79
79
80
80
/**
81
-
* An Arcade Physics Body can have angularVelocity and angularAcceleration. Please understand that the collision Body
81
+
* The Body's rotation in degrees, as calculated by its angularVelocity and angularAcceleration. Please understand that the collision Body
82
82
* itself never rotates, it is always axis-aligned. However these values are passed up to the parent Sprite and updates its rotation.
83
83
* @property {number} rotation
84
84
*/
@@ -252,25 +252,25 @@ Phaser.Physics.Arcade.Body = function (sprite) {
252
252
this.friction=newPhaser.Point(1,0);
253
253
254
254
/**
255
-
* @property {number} angularVelocity - The angular velocity controls the rotation speed of the Body. It is measured in radians per second.
255
+
* @property {number} angularVelocity - The angular velocity controls the rotation speed of the Body. It is measured in degrees per second.
256
256
* @default
257
257
*/
258
258
this.angularVelocity=0;
259
259
260
260
/**
261
-
* @property {number} angularAcceleration - The angular acceleration is the rate of change of the angular velocity. Measured in radians per second squared.
261
+
* @property {number} angularAcceleration - The angular acceleration is the rate of change of the angular velocity. Measured in degrees per second squared.
262
262
* @default
263
263
*/
264
264
this.angularAcceleration=0;
265
265
266
266
/**
267
-
* @property {number} angularDrag - The drag applied during the rotation of the Body.
267
+
* @property {number} angularDrag - The drag applied during the rotation of the Body. Measured in degrees per second squared.
268
268
* @default
269
269
*/
270
270
this.angularDrag=0;
271
271
272
272
/**
273
-
* @property {number} maxAngular - The maximum angular velocity in radians per second that the Body can reach.
273
+
* @property {number} maxAngular - The maximum angular velocity in degrees per second that the Body can reach.
274
274
* @default
275
275
*/
276
276
this.maxAngular=1000;
@@ -282,7 +282,7 @@ Phaser.Physics.Arcade.Body = function (sprite) {
282
282
this.mass=1;
283
283
284
284
/**
285
-
* @property {number} angle - The angle of the Bodyin radians, as calculated by its angularVelocity.
285
+
* @property {number} angle - The angle of the Body's velocity in radians.
0 commit comments