Shaku

Shaku JS

Back To Table of Content

Circle

CircleShape

Collision circle class.

Kind: global class

new CircleShape(circle)

Create the collision shape.

Param Type Description
circle Circle the circle shape.

circleShape.shapeId

Kind: instance property of CircleShape

circleShape.setShape(circle)

Set this collision shape from circle.

Kind: instance method of CircleShape

Param Type Description
circle Circle Circle shape.

circleShape._getRadius()

Kind: instance method of CircleShape

circleShape.getCenter()

Kind: instance method of CircleShape

circleShape._getBoundingBox()

Kind: instance method of CircleShape

circleShape.debugDraw()

Kind: instance method of CircleShape