getBlockCenterPosition method
Get the position of the center of the surface of the isometric tile in the cartesian coordinate space.
This is the opposite of getBlock.
Implementation
Vector2 getBlockCenterPosition(Block block) {
final tile = effectiveTileSize;
return getBlockRenderPosition(block)
..translate(
(tile.x / 2) * scale.x,
(tile.y - effectiveTileHeight - tile.y / 4) * scale.y,
);
}