Skip to content

Commit a786298

Browse files
committed
Updated Line docs. phaserjs#4590
1 parent 77859b1 commit a786298

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/gameobjects/shape/line/Line.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ var LineRender = require('./LineRender');
2424
*
2525
* If you need to draw multiple lines in a sequence you may wish to use the Polygon Shape instead.
2626
*
27+
* Be aware that as with all Game Objects the default origin is 0.5. If you need to draw a Line
28+
* between two points and want the x1/y1 values to match the x/y values, then set the origin to 0.
29+
*
2730
* @class Line
2831
* @extends Phaser.GameObjects.Shape
2932
* @memberof Phaser.GameObjects

0 commit comments

Comments
 (0)