Returns a Line collision shape object
Parameter | Type | Description |
---|---|---|
x1 | Number | x position of the first point of the Line |
y1 | Number | y position of the first point of the Line |
x2 | Number | x position of the second point of the Line |
y2 | Number | y position of the second point of the Line |
Sets the position of the box
Parameter | Type | Description |
---|---|---|
x1 | Number | x1 position of the Line |
y1 | Number | y1 position of the Line |
Sets the position of the box
Parameter | Type | Description |
---|---|---|
x2 | Number | x2 position of the Line |
y2 | Number | y2 position of the Line |
Sets the width of the line
Parameter | Type | Description |
---|---|---|
width | Int | width of the Line |
Number
x1 position of the Line
Number
y1 position of the Line
Number
x2 position of the Line
Number
y2 position of the Line
Number
width of the Line