Floating Origin

Description
This script translates all objects in the world to keep the camera near the origin preventing spatial jittering due to floating-point inaccuracies. It detects when the camera is further than 'threshold' units from the origin, at which point it moves everything so that the camera is back at the origin. There is also an option to disable physics beyond a certain point.

For background on spatial jitter and how/why floating origin works refer to the PhD by Chris Thorne:.

Usage
Attach this script to 'threshold' determines the distance at which mass object translation occurs, this is not a light-weight operation so less frequent movement is better. 'physicsThreshold' determines the distance from the camera at which physics is disabled (set to zero to prevent this behaviour)