- Home /
The question is answered, right answer was accepted
Changing the coordinate system
So i've started exploring a space simulation game, and I created a ship w/ a movement script, I started moving around and went out fairly far from the origin. I discovered that due to the point float system unity uses for object positions, that objects start to jitter and fly allover the place once they get far from the origin.
Is there anyway to change the way unity coordinates work, so that instead of float coordinates it uses doubles, or I can use exponents?
$$anonymous$$erbal Space Program did something like this, they did a pretty in-depth technical presentation that explained how they did certain parts of the game. If you want to hear how they got through this issue skip to 4:10 on this video:
http://www.youtube.com/watch?v=mXTxQko-JH0
They made their own versions/classes of Vector3 and Quaternions that use doubles, as well as moving the universe around the player rather than the opposite. It seems to have worked really well.
Someone also wrote a script that translates everything around the camera after a certain distance, it wouldn't be difficult to make but here's a link to that as well:
http://wiki.unity3d.com/index.php?title=Floating_Origin
Good luck solving this issue!