We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0bf25c commit 8da0476Copy full SHA for 8da0476
1 file changed
Phaser/gameobjects/GeomSprite.ts
@@ -409,7 +409,7 @@ module Phaser {
409
}
410
411
// Line vs. Circle
412
- if (this.type == GeomSprite.LINE && source.type == GeomSprite.LINE)
+ if (this.type == GeomSprite.LINE && source.type == GeomSprite.CIRCLE)
413
{
414
return Collision.lineToCircle(this.line, source.circle).result;
415
@@ -421,7 +421,7 @@ module Phaser {
421
422
423
// Line vs. Point
424
+ if (this.type == GeomSprite.LINE && source.type == GeomSprite.POINT)
425
426
return this.line.isPointOnLine(source.point.x, source.point.y);
427
0 commit comments