Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4a1ef16

Browse files
authoredJan 28, 2019
Fix Polygon.testRay ignoring 'into' parameter
1 parent b6db09e commit 4a1ef16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎differ/shapes/Polygon.hx

+1-1
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)
Please sign in to comment.