Constructor
new CircleCollider(colliderName, argsopt) → {void}
Create a new CircleCollider
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
colliderName |
string |
name of this collider |
||
args |
object |
<optional> |
{} |
additional properties (e.g {radius: 10}) |
Properties:
Name | Type | Description |
---|---|---|
radius |
integer |
Radius of the collider |
- Source:
Extends
- Collider
Methods
debugDraw(draw2d, entityX, entityY, coloropt) → {dynamic}
Draws the circle outline around the collider
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
draw2d |
object | |||
entityX |
float | |||
entityY |
float | |||
color |
integer |
<optional> |
&hFF0000FF |
refreshColliderRegion() → {void}
Refreshes the collider