Objects jittering

I’m messing around with a space shooter, but when I fly away from origin everything starts jittering, it’s directly related to the distance form origin. It becomes noticeable at around 15,000 units, but if I’m looking for it I can see the jitter all the way down to 3000 units. Other than scaling everything down does anyone know of a solution to this issue? Currently all my models are scaled to 1 unit = 1 meter.

I did try removing except 4 cubes in the center of the scene, and my space ship. This didn’t have any effect on the jitter.

One thing I did notice about the jitter is, If I don’t touch rotational controls(which are using AddTorque) and only use the engine(using AddForce), basically flying in a straight line, I don’t get a jitter. I went all the way to 300,000 units from origin with no jitter, but as soon as I touched rotation the models started shaking violently.

There’s no direct solution, since that’s a hard limit of floating point precision. Basically you get 7 digits, so every time you go up an order of magnitude, you lose one digit to the right of the decimal. So you can have 1.000001, but by the time you get to 10000, the best you can do is 10000.01, which doesn’t give you (or the physics engine) much to work with. Always keep your objects <10K units from the origin. The usual indirect solution is to use some kind of floating origin system. There are plenty of topics about this already, so you can do a search if you need more info.

–Eric