[Closed] Position particles at the same distance along a spiral
Hi,
in order to generate particles in an Archimede’s spiral path I do this:
for i = 0 to 5000 do(
pCont.AddParticle()
pCont.particleindex=i+1
myPos=[.01*i*cos(i), .01*i*sin(i), 0]
pCont.particlePosition = myPos
)
which works perfectly. But what I want to do is position the particles along the spiral path at the same distance one from another. Any hint?
Thanks!
S
Attached two examples. I tricked the distribution that I want to obtain with a normalized spline (but still I want to obtain this with a script).
My actual script positions stuff in a more “dense” way at birth, and gets less dense along the spiral.
I want to be able to have n particles at a D distance between them, positioned along the spiral. Like applying a normalize spline modifier to a spline…
In other words, since I’m using the Archimede’s spiral formula
x=acos(a), y= asin(a)
I need to know a formula for the “a” value that gives me an arc length = D (constant defined by user) from the previous point, starting from 0.