Hi guys,
First, thanks for this amazing project. Really making progress with my game. I wanted to debug my terrain manager, so decided to add a “centre of tile” line that would show the centre of the tile, adjusted by it’s normal.
After generating normals for the vertices for a tile, I set the tile normal, and normalised it using:
tile.Centre.Normalize();
However, I noticed the magnitude of Centre
was not 1, and the length of the resultant vector was 600f (causing there to be a web of lines on the screen). I changed the code to:
tile.Centre = Vector3.Normalize(tile.Centre);
And it correctly had a magnitude of “1” and rendered correctly.
Did I done goof?