This project is about spawning in any object of your liking. we decided to do it with 10 spheres with a script, we then added more lines of codes which enabled the script to spawn in 10 spheres in a line. With this code, I could spawn in a lot of spheres by just increasing the number. After spawning them in a line I tried doing them at an angle using different axes. I started messing around with the physical collider. I set the number to infinite and let the spheres bounce on a cube which sent them flying.
I then started spawning in spheres 1 by 1 and having them change colors, this was pretty fun to do as you could either select a color it changes to when it hits another object or set it to a random color. The object would hit had its position locked so it would stay in one place but it would still rotate, setting the spheres in random directions.
Understanding the script was a bit difficult, but once you understood some of the keywords in the script it was ok. 
Script for spawning in 10 spheres.
Script for 10 Spheres to spawn in a line.
Script for 10 Spheres to spawn in diagonally with spacing. 
Making the spheres spin on a selected axis.
Added more spheres with the spin script.
Spawning in infinite spheres on an object with a physic material attached
Spawn script, color change in action. The color script is attached both to the spheres and the platform.
Back to Top