The movie creates 10 spheres at random locations. A main Sphere uses raycastclosest () method to find the closest sphere to it. Linear Velocity is assigned to the main sphere in the direction of the closest ball. It collides with the closest sphere and the closest sphere is deleted. This is repeated until all the spheres except the main sphere is deleted.