Shaku

Shaku JS

Back To Table of Content

Rectangle

RectangleShape

Collision rectangle class.

Kind: global class

new RectangleShape(rectangle)

Create the collision shape.

Param Type Description
rectangle Rectangle the rectangle shape.

rectangleShape.shapeId

Kind: instance property of RectangleShape

rectangleShape.setShape(rectangle)

Set this collision shape from rectangle.

Kind: instance method of RectangleShape

Param Type Description
rectangle Rectangle Rectangle shape.

rectangleShape._getRadius()

Kind: instance method of RectangleShape

rectangleShape._getBoundingBox()

Kind: instance method of RectangleShape

rectangleShape.getCenter()

Kind: instance method of RectangleShape

rectangleShape.debugDraw()

Kind: instance method of RectangleShape