I think storing my player’s position in a view matrix may have been a mistake. This happens at around x/y 16 million. #gamedev
@exoplanetary Just use doubles instead of floats! 😉
Matrices are just prone to this kind of imprecision at large distances. IMO for a chunked-voxel game storing the positions of things as hierarchical (eg: integer chunk position/index & floating point position relative to the chunk origin). It could also help speed up things like physics, too; you can easily determine which chunks you need to check collisions with for both the terrain and other entities.