|
I've recently just enquired about randomly instantiating a gameobject, but now I've got a problem randomising there position, I've managed to get the position to randomise but this apples to all the instances. I want each instance to have its own random position.
Thanks - C
(comments are locked)
|
|
If so you need to generate the position inside the for loop as well, to make sure it runs the same amount of times. I don't suppose you know how to change the Quaternion.identity to randomise just on the X, i tried Random.rotation but its on x,y,z? thanks for your answer!
Feb 20 '11 at 07:43 PM
Caiuse
I assume you mean the X-value that shows up in the inspector? That is, you want to rotate randomly around the X-axis? If so, try;
Feb 21 '11 at 07:14 AM
johan-skold
(comments are locked)
|
