Author Topic: Why does the farlands do what it does?  (Read 2965 times)

wait so it just makes giant boxes of 3d space and then puts coords inside it? so instead of using 1000,1000 it breaks every 100 units into its own cube so its box[10,10] coords 100,100?
You have multiple boxes with integer coordinates. So rather than a single area using x, y, z float coordinates like you have in the Torque engine as used here, you have boxes with an offset, each with it's own internal x, y, z coordinates. So once you reach the point where you're about reach the accuracy threshold and enter the farlands, the integer offset rolls over to the next box, and the relative floating point resets.

So say you're at x=9999.990, y=568.544, z=0.000, depending on the accuracy you want, you could add an offset (x=000+9999.990, y=000+568.544, z=0.000) and when you move it just resets to the nearest value, inverse to where you where (x=001-9999.990, y=000+568.456, z=1.000).

More or less.