Guest User

Untitled

a guest
Jan 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. mesh.Clear();
  2.  
  3. transform.position = new Vector3(-width/2,0 * scale,-height/2 * scale);
  4.  
  5. positionsAll = new Vector3[2 * width * height];
  6.  
  7. setupHeightMap();
  8. int[] triangles = getTriangles();
  9.  
  10. mesh.vertices = positionsAll;
  11. mesh.triangles = triangles;
  12. mesh.RecalculateNormals();
  13.  
  14. triangles[0] 30785 System.Int32
  15. triangles[4] 96322 System.Int32
  16. mesh.triangles[0] 30785 System.Int32
  17. mesh.triangles[4] 30786 System.Int32
  18. mesh.vertices[triangles[0]] "(65.0, 0.0, 120.0)" UnityEngine.Vector3
  19. mesh.vertices[triangles[4]] "(66.0, -0.2, 120.0)" UnityEngine.Vector3
  20. mesh.vertices[mesh.triangles[0]] "(65.0, 0.0, 120.0)" UnityEngine.Vector3
  21. mesh.vertices[mesh.triangles[4]] "(66.0, 0.2, 120.0)" UnityEngine.Vector3
Add Comment
Please, Sign In to add comment