Shaku

Shaku JS

Back To Table of Content

Lines

LinesShape

Collision lines class. This shape is made of one line or more.

Kind: global class

new LinesShape(lines)

Create the collision shape.

Param Type Description
lines Array.<Line> | Line Starting line / lines.

linesShape.shapeId

Kind: instance property of LinesShape

linesShape.addLines(lines)

Add line or lines to this collision shape.

Kind: instance method of LinesShape

Param Type Description
lines Array.<Line> | Line Line / lines to add.

linesShape.setLines(lines)

Set this shape from line or lines array.

Kind: instance method of LinesShape

Param Type Description
lines Array.<Line> | Line Line / lines to set.

linesShape._getRadius()

Kind: instance method of LinesShape

linesShape.getCenter()

Kind: instance method of LinesShape

linesShape._getBoundingBox()

Kind: instance method of LinesShape

linesShape.debugDraw()

Kind: instance method of LinesShape