New lineIntersectLine() function working nicely.

This commit is contained in:
photonstorm
2014-01-28 17:13:07 +00:00
parent 82cb66f47b
commit 5b85c910cb
8 changed files with 555 additions and 26 deletions
+7
View File
@@ -925,6 +925,10 @@ Phaser.Utils.Debug.prototype = {
this.context.arc(x, y, body.shape.r, 0, Math.PI * 2, false);
this.context.stroke();
this.context.closePath();
this.context.strokeStyle = 'rgb(0,0,255)';
this.context.strokeRect(body.left, body.top, body.width, body.height);
this.stop();
}
else
@@ -953,6 +957,9 @@ Phaser.Utils.Debug.prototype = {
this.context.fillRect(x + points[i].x - 2, y + points[i].y - 2, 5, 5);
}
this.context.strokeStyle = 'rgb(0,0,255)';
this.context.strokeRect(body.left, body.top, body.width, body.height);
this.stop();
}