Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. for(int y = 0; y <= amp + 3; y++)
  2. {
  3. for(int x = 0; x <= chunkSize - 1; x++)
  4. {
  5. for(int z = 0; z <= chunkSize - 1; z++)
  6. {
  7. if(Physics.CheckSphere(new Vector3(Mathf.Round(x),Mathf.Round(y),Mathf.Round(z)),0.5f) == false)
  8. {
  9. Instantiate(grass,new Vector3(x,y,z), Quaternion.identity);
  10. dontPlaceHere.Add(new Vector3(x,y,z));
  11. }
  12. }
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement