Hi,
Problaby a simple question, but I’m a bit stumped for the right method.
I’m making a simple top-down / verticle space game.
I have randomly instantiated rigidbody asteroids that appears at the top of the screen, which then travels down, when they are out of bounds they are destroyed.
Could somone help me script a random roation (x, y, z) of the asteroid when they are instantiated - thus allowing them to then have a constant roation then set as they travel down the screen?
I’ve looked at Random.Range, but I don’t know how to implement it in this case.
I assume that on the Start method (or maybe Awake) is where I create the random axis to spin. Then in the Update (possible Fixed Update) is where I keep applying the rotation from the randomly generated axis.
Maybe I’m not on the right track?
Thanks,
Jay.