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/StaticBody.js
+21-19Lines changed: 21 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ var Vector2 = require('../../math/Vector2');
15
15
* A Static Arcade Physics Body.
16
16
*
17
17
* A Static Body never moves, and isn't automatically synchronized with its parent Game Object.
18
-
* That means if you make any change to the parent's origin, position, or scale after creating or adding the body, you'll need to update the Body manually.
18
+
* That means if you make any change to the parent's origin, position, or scale after creating or adding the body, you'll need to update the Static Body manually.
19
19
*
20
20
* A Static Body can collide with other Bodies, but is never moved by collisions.
* @param {integer} [width] - The width of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame width.
521
-
* @param {integer} [height] - The height of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame height.
522
-
* @param {boolean} [center=true] - Modify the Body's `offset`, placing the Body's center on its Game Object's center. Only works if the Game Object has the `getCenter` method.
522
+
* @param {integer} [width] - The width of the Static Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame width.
523
+
* @param {integer} [height] - The height of the Static Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame height.
524
+
* @param {boolean} [center=true] - Place the Static Body's center on its Game Object's center. Only works if the Game Object has the `getCenter` method.
523
525
*
524
526
* @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.
525
527
*/
@@ -572,7 +574,7 @@ var StaticBody = new Class({
572
574
},
573
575
574
576
/**
575
-
* Sets this Static Body to have a circular body and sets its sizes and position.
577
+
* Sets this Static Body to have a circular body and sets its size and position.
0 commit comments