With this code I get 3 spirals but the 2dn and 3rd spiral their points are at further distances.
I want something where I can control the number of spirals and then equally devide them.
The first image shows the result with this code,
the second image is the desired result:
var pointObject : GameObject;
var spiralNumber : int = 1;
var pointDistance : float = 0.1;
var spiralLength : float = 30;
function Start()
{
for (var arm : int = 0; arm < spiralNumber; arm++)
{
pointDistance = 0.1 + (arm/2);
for(var point :int = 0; point < spiralLength; point++)
{
var randomPos :Vector2;
randomPos.x = point * pointDistance * Mathf.Cos(pointDistance);
randomPos.y = point * pointDistance * Mathf.Sin(pointDistance);
Instantiate(pointObject, Vector3(randomPos.x, 0, randomPos.y), Quaternion.identity);
pointDistance += 0.1;
}
}
}