#Procedural terrain in Unity

1 messages · Page 1 of 1 (latest)

snow cloud
woven wyvern
#

Well what else do you expect to happen?
After all, whatever you do in those for loops, you undo immediately when you overwrite triangles with this block ```cs
triangles = new int[xSize * zSize * 6];
triangles[0] = 0;
triangles[1] = xSize + 1;
triangles[2] = 1;
triangles[3] = 1;
triangles[4] = xSize + 1;
triangles[5] = xSize + 2;

**Always make sure to understand the code you copy**. Or even better, don't copy code in the first place.
snow cloud
#

alr

#

i mean i didnt see the problem