unity Tag

Today I am going to walk you through a bug I encountered while creating my most recent project Project Stardust. If a camera in Unity moves too far away from the origin of the play space, things start to break down mathematically. Visual artifacts become very apparent, most often seen in the form of vibrating or flickering meshes/textures. The Cause: Floating point rounding error Since the Transform's  x, y, and z coordinates are of C# float data type there are limitations to ranges in which rounding errors do not occur. For a full write-up of why this happens you must understand the IEEE standard for floating...