piotr-j/libgdxplayground

[Bug] IsoTest underflows

Closed this issue · 0 comments

IsoTest algorithm doesn't round correctly
https://i.imgur.com/s009X0U.png

int x = (int)((isoPos.y)/2f - .5f);
int y = (int)((isoPos.x)/2f + .5f);

Values should be Math.floored (alternatively checked if positive)