- Home /
How to use this code for instantiate?
Hello guys, i'm trying to instantiate object without overlap. I'm using poisson disc sampling in this code how can i use for instantiate?
Check 16:30 in video he made test code for how to use it.
https://www.youtube.com/watch?v=7WcmyxyFO7o
How can i edit this code for my code(in bellow)?
Here is my instantiate code;
 float XIns = Random.Range(-2.55f, 2.55f);
  Vector3 rndVector = new Vector3(XIns, Random.Range(-1.6f, 4.1f), 0);
 GameObject block = Instantiate(block1, rndVector, Quaternion.identity);
  float XYZ = Random.Range(0.27f,0.7f);
 block.transform.localScale = new Vector3(XYZ, XYZ, XYZ);
Thanks.
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                