UNPKG

shaku

Version:

A simple and effective JavaScript game development framework that knows its place!

64 lines (43 loc) 1.79 kB
![Shaku JS](resources/logo-sm.png) [Back To Table of Content](index.md) # Circle <a name="CircleShape"></a> ## CircleShape Collision circle class. **Kind**: global class * [CircleShape](#CircleShape) * [new CircleShape(circle)](#new_CircleShape_new) * [.shapeId](#CircleShape+shapeId) * [.setShape(circle)](#CircleShape+setShape) * [._getRadius()](#CircleShape+_getRadius) * [.getCenter()](#CircleShape+getCenter) * [._getBoundingBox()](#CircleShape+_getBoundingBox) * [.debugDraw()](#CircleShape+debugDraw) <a name="new_CircleShape_new"></a> ### new CircleShape(circle) Create the collision shape. | Param | Type | Description | | --- | --- | --- | | circle | <code>Circle</code> | the circle shape. | <a name="CircleShape+shapeId"></a> ### circleShape.shapeId **Kind**: instance property of [<code>CircleShape</code>](#CircleShape) <a name="CircleShape+setShape"></a> ### circleShape.setShape(circle) Set this collision shape from circle. **Kind**: instance method of [<code>CircleShape</code>](#CircleShape) | Param | Type | Description | | --- | --- | --- | | circle | <code>Circle</code> | Circle shape. | <a name="CircleShape+_getRadius"></a> ### circleShape.\_getRadius() **Kind**: instance method of [<code>CircleShape</code>](#CircleShape) <a name="CircleShape+getCenter"></a> ### circleShape.getCenter() **Kind**: instance method of [<code>CircleShape</code>](#CircleShape) <a name="CircleShape+_getBoundingBox"></a> ### circleShape.\_getBoundingBox() **Kind**: instance method of [<code>CircleShape</code>](#CircleShape) <a name="CircleShape+debugDraw"></a> ### circleShape.debugDraw() **Kind**: instance method of [<code>CircleShape</code>](#CircleShape)