- Home /
How would one go about making an asteroid field in a circle around an empty object in 2D?
So, I have 4 days to make a small demo of a game, so that I could get into a university and I absolutely cannot code, because I've only begun learning a month ago, when I've recieved an entry assignment to make the game and my C# skills are in their diapers, so to speak...
TL;DR: I have barely something done and I'm panicking quite a lot - I know it is rude on these forums to ask for code, but all I really need to know, is how to get the code from the folowing tutorial https://www.youtube.com/watch?v=6rTfZ2ox2_g&ab_channel=Rabidgremlin to work in a 2D project in Unity? I have 18 asteroid prefabs, each one has a Rigidbody2D, a polygon collider and I want to spawn 250 or so of their copies randomly within a big circle around an empty gameObject with a bit of movement. I have tried replacing the "insideUnitSphere" command with a "insideUnitCircle", but that did not do the trick.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to keep player in bounds? 1 Answer
How to remove a specific prefab from a List? 1 Answer
Dictionary in second script empty 1 Answer