Skip to content

Commit 31d2262

Browse files
committed
Fixed HitTest
1 parent a45554d commit 31d2262

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/input/global/inc/HitTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var HitTest = function (tempMatrix, x, y, gameObjects, camera, output)
1717
return output;
1818
}
1919

20-
var screenPoint = camera.cameraToWorld({ x: x, y: y });
20+
var screenPoint = camera.getWorldPoint({ x: x, y: y });
2121
var culledGameObjects = camera.cull(gameObjects);
2222

2323
for (var i = 0; i < culledGameObjects.length; i++)

0 commit comments

Comments
 (0)