I need to make some instances avoid other objects. I happened upon tdu.position and tdu.vector, so I’m getting my object and object to avoid, and subtracting to make a vector. As far as I know, the distance of the vector will equal the distance between centers, right?
So - if I want to avoid, I want to move away in the vector direction, but I need to invert it and scale it more or less depending on closeness? How can I do something like nearLimit - ver.distance() to get a scaled vector? There’s no set distance in tdu.vector, but is there an equivalent?
Worst case I suppose I could work with a fixed distance vector for my push away?
Any tips? Isn’t this like a boid system?