With this code I get the result shown in image 1.
but I want something like in image2.
Any sugestions?
var distance :int = .1;
var length :int = 20;
for(var point :int = 0; point < length; point++)
{
var randomPos :Vector3;
randomPos.x = point * distance * Mathf.Cos(distance);
randomPos.y = 0;
randomPos.z = point * distance * Mathf.Sin(distance);
var systemTemplate :GameObject = Instantiate(Sphere, randomPos, Quaternion.identity);
distance += 1;
}