I would like to know how you can have several objects be evenly spread out between two points, even if the points are changing. I tried to do this with linear interpolation, but it didn't work how I wanted.
Printable View
I would like to know how you can have several objects be evenly spread out between two points, even if the points are changing. I tried to do this with linear interpolation, but it didn't work how I wanted.
OK, Lets assume the objects are circles. So each circle has a center point. Start a loop or always condition. You need to define what you mean by spread out, hortizontally, vertitically, or in a linear fashion.
find the left most object x,y
find the right most object x,y
find the distance between them
find the number of objects
divide the distance by number of ojects - 1