Created a small run for the balls to travel in. Each click: Drops a new ball, changes all existing balls colors, pushes the ball using a raycast hit from empties along the maze walls, and randomly changes the balls color until it exits the maze. Time it right and you get an eclectic, moving, array of colored balls.
I used 5 scripts. 1 script per push direction (Left, Right, Down), 1 script to drop a new ball, and a final script to randomly change the balls color (applied to prefab).
- Status: Final