Documenting bug with coordinate projection

This commit is contained in:
Collin Smith 2019-03-05 13:09:42 -08:00
parent cb977678ea
commit 64bf1723aa

View File

@ -182,6 +182,8 @@ public class MapRenderer {
}
}
// FIXME: result is slightly off -- more obvious with higher/lower zooms
// possibly caused by trying to use the projection in Diablo.viewport.camera space
public Vector2 projectScaled(Vector2 dst) {
tmpVec3.set(dst.x, dst.y, 0);
camera.project(tmpVec3, 0, 0, camera.viewportWidth, camera.viewportHeight);