![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | lofi |
Im distributing X nodes from point A to point B in a linear way, more especifically like this.
var rotate.origin = 90
var rotate.ending = 180
var bullet.amount = 10.0
var rotate.angle = (rotate.ending - rotate.origin) / bullet.amount
In this case (180 - 90) / 10 = 9.
I’ll evenly spawn nodes with a diference of 9 degrees.
But I want to spawn them in a non linear way, going from small steps to bigger steps or viceversa, thats why i think an exponential function could help, but i don’t know how to apply it.
Can some one explain it to me?