2013-08-11 11:15:53 +00:00
|
|
|
var Phaser;
|
|
|
|
(function (Phaser) {
|
|
|
|
(function (Physics) {
|
|
|
|
/// <reference path="../../_definitions.ts" />
|
|
|
|
/**
|
|
|
|
* Phaser - Physics - Projection
|
|
|
|
*/
|
|
|
|
(function (Projection) {
|
|
|
|
var AABBFull = (function () {
|
|
|
|
function AABBFull() {
|
|
|
|
}
|
|
|
|
AABBFull.Collide = function (x, y, obj, t) {
|
|
|
|
var l = Math.sqrt(x * x + y * y);
|
|
|
|
|
2013-08-11 18:02:10 +00:00
|
|
|
obj.reportCollisionVsWorld(x, y, x / l, y / l, t);
|
2013-08-11 11:15:53 +00:00
|
|
|
|
|
|
|
return Phaser.Physics.AABB.COL_AXIS;
|
|
|
|
};
|
|
|
|
return AABBFull;
|
|
|
|
})();
|
|
|
|
Projection.AABBFull = AABBFull;
|
|
|
|
})(Physics.Projection || (Physics.Projection = {}));
|
|
|
|
var Projection = Physics.Projection;
|
|
|
|
})(Phaser.Physics || (Phaser.Physics = {}));
|
|
|
|
var Physics = Phaser.Physics;
|
|
|
|
})(Phaser || (Phaser = {}));
|