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