We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bd3108 commit b4d9d71Copy full SHA for b4d9d71
1 file changed
src/tilemaps/components/WorldToTileXY.js
@@ -31,8 +31,8 @@ var OrthoWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, l
31
{
32
if (point === undefined) { point = new Vector2(0, 0); }
33
34
- point.x = WorldToTileX(worldX, snapToFloor, camera, layer);
35
- point.y = WorldToTileY(worldY, snapToFloor, camera, layer);
+ point.x = WorldToTileX(CONST.ORTHOGONAL)(worldX, snapToFloor, camera, layer);
+ point.y = WorldToTileY(CONST.ORTHOGONAL)(worldY, snapToFloor, camera, layer);
36
return point;
37
};
38
0 commit comments