src/components/collision.js
function (params) {
        params = _.extend({
            anchor: {
                x: 0.5,
                y: 0.5
            }
        }, params);

        this.$id = 'collision';
        this.$deps = ['position'];

        this.width = params.width;
        this.height = params.height;
        this.anchor = params.anchor;
    }
function (params) {
        params = _.extend({
            anchor: {
                x: 0.5,
                y: 0.5
            }
        }, params);

        this.$id = 'collision';
        this.$deps = ['position'];

        this.width = params.width;
        this.height = params.height;
        this.anchor = params.anchor;
    }
function ( params ) { params = _ . extend ( { anchor : { x : 0.5 , y : 0.5 } } , params ) ; this . $id = 'collision' ; this . $deps = [ 'position' ] ; this . width = params . width ; this . height = params . height ; this . anchor = params . anchor ; }
Represents the collision boundaries of an entity.
Represents the collision boundaries of an entity .