new CircleCollider(radius, params)
Parameters:
Name | Type | Description |
---|---|---|
radius |
int | circle size |
params |
object | Optional parameters (offets) |
- Source:
Examples
// classic GameObject declaration var myObject = new DE.GameObject( { x: 150, y: 200, collider: new DE.CircleCollider( 100, { offsetY: 50 } ) } );
// adding a collider later myObject.collider = new DE.CircleCollider( 70 );