Class: FixedBoxCollider

FixedBoxCollider

Create a box collider (can't rotate)

new FixedBoxCollider(width, height, params)

Parameters:
Name Type Description
width int

box width

height int

box height

params object

Optional parameters (offets)

Source:
Examples
 // classic GameObject declaration
var myObject = new DE.GameObject( {
  x: 150, y: 200,
  collider: new DE.FixedBoxCollider( 150, 100 )
} );
 // adding a collider later
myObject.collider = new DE.FixedBoxCollider( 150, 100 );

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.