Game Development Community

Jittery at Long Distances

by Mike Kuklinski · in General Discussion · 12/19/2004 (2:45 pm) · 2 replies

Why, when I get out around 40,000 meters from the origin, does the game world begin to become... "Jittery"?

#1
12/19/2004 (9:24 pm)
The most common reason for this to occur is the lack of resolution in the position data. With only a limited number of bits in a floating point value it is necessary to only store the 'most relevant' information. This means dropping of digits to the right of the decimal point with big numbers.

If you really need the resolution, you could change from float to double.
#2
12/20/2004 (2:03 pm)
At that kind of distance you are definitely going to run into floating point precision errors.