Closed SamBehm closed 2 years ago
The worldToTilePosition function in TerrainComponent is producing incorrect values.
Steps to reproduce the behaviour:
Converting positions down the bottom left diagonal of the map should produce values:
(0,0), (1,0), (2,0) ... (n, 0)
What could work as a fix for this is to use a transformation matrix to transform the mouse position as a vector to tile space. Possible fix:
[Note; This calculation is for tileSize 1f]
Description
The worldToTilePosition function in TerrainComponent is producing incorrect values.
How To Reproduce
Steps to reproduce the behaviour:
Expected Behaviour
Converting positions down the bottom left diagonal of the map should produce values:
(0,0), (1,0), (2,0) ... (n, 0)
Screenshots