Floating origin
Floating origin is a 3D rendering trick used in many games to keep position calculations accurate when you move far from the starting point. Instead of moving the camera to change what you see, the game moves the entire world around a fixed camera at the origin. Another approach, called origin shift, snaps the world and camera back to the origin after the player moves a certain distance.
Why it’s used: 3D coordinates rely on floating-point numbers. Their precision is best near zero and gets worse with distance, which can cause glitches in large or endless game worlds. With 32-bit floats, you lose the ability to represent fractions beyond about 8 million units, and precision deteriorates quickly as you go farther. Floating origin helps avoid these precision errors by keeping the camera at the origin and letting the world move around it. It can also allow using faster, less precise number formats.
How it works: a common implementation keeps the camera stationary and transforms the entire world around it, so it looks like you’re moving. Another method keeps the camera at the origin and shifts the world only when needed, then repeats as you travel. This technique can trade a bit of coding complexity for better performance and larger effective travel distances. Higher-precision formats can be used for absolute object positions if needed.
It works for both single-player and multiplayer games. While there are misconceptions about multiplayer use (such as how multiple cameras interact or how to coordinate movement), floating origin has been demonstrated to function with proper synchronization and gameplay logic.
Floating origin is a practical solution that helps games run smoothly over vast spaces by reducing precision-related glitches, while still allowing developers to use simpler, faster number formats where appropriate.
This page was last edited on 2 February 2026, at 03:37 (CET).