Guest User

Untitled

a guest
Jul 17th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. int current_pos = 0;
  2. for (int row = 1; row < 18; row++)
  3. {
  4. if (row % 2 != 0)
  5. {
  6. // Odd row that has 9 heights
  7. for (int i = 0; i < 9; i++)
  8. {
  9. positionList.Add(new Vector3(vert_x - (column_spacing_9 * i), vert_y + currentMCNK._MCVT.heights[current_pos], vert_z - ((row - 1) * row_spacing)));
  10. current_pos++;
  11. }
  12. }
  13. else
  14. {
  15. // Even row that has 8 heights
  16. for (int i = 0; i < 8; i++)
  17. {
  18. //positionList.Add(new Vector3(vert_x - (column_spacing_8 * i), vert_y - currentMCNK._MCVT.heights[current_pos], vert_z - ((row - 1) * row_spacing)));
  19. current_pos++;
  20. }
  21. }
  22. }
Add Comment
Please, Sign In to add comment