hi, the following lines shall quantize the coordinates of an entity:
Code:
my.x = integer(my.x/128)*128-64;
my.y = integer(my.y/128)*128+64;
but this only works if the coords are near to the camera. a bit away from the camera position it creates wrong coordinates as if the position was more towards the camera..
any ideas?
btw, i want to get the positions on a checkerfield grid.