Class: CircleCollider

CircleCollider

create a circle collider

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 );

Extends

Dreamirl Copyright © 2014 And the contributors
Documentation generated by JSDoc 3.2.2 on Thu Apr 24 2014 11:56:40 GMT+0200 (CEST) using the DocStrap template.