So I'm working on an on rails space shooter and I'm trying to figure out how to add in an asteroid field.
I'm not too sure where to start. I mean I know that adding loads of asteroids in would be a bad idea. So I was hoping to come up with one and then instantiate(?) it through script into different places and sizes and even add rotation and movement if possible.
Like I said I'm a bit unsure of how to start this so any help would be really handy.
Thanks guys :)
Well, given a simple sphere prefab, you could try something like this-
This should spit out a bunch of asteroids for you!
answered Feb 19, 2012 at 01:29 AM