Skip to content

Commit eaaebaa

Browse files
authored
Merge pull request #27 from samnm/patch-1
Fix Polygon.testRay ignoring 'into' parameter
2 parents b6db09e + 4a1ef16 commit eaaebaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

differ/shapes/Polygon.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Polygon extends Shape {
5353
/** Test for a collision with a ray. */
5454
override public function testRay( ray:Ray, ?into:RayCollision ) : RayCollision {
5555

56-
return SAT2D.testRayVsPolygon(ray, this);
56+
return SAT2D.testRayVsPolygon(ray, this, into);
5757

5858
} //testRay
5959

0 commit comments

Comments
 (0)