So I made a grid texture and wrote some code to put spheres on the interactions of the grid. The code puts a sphere every 0.1 meters. On the x axis it works perfectly but on the z when getting further away from z = 0, the spheres are in the wrong position.
I included a screenshot and my grid texture.
Please ask for additional information if needed.
Thank You!

