4
$\begingroup$

I have an animation of objects running along a spline and they vary their scale following a sine pattern. The thing is that the spheres sometimes overlap. I have made a loop which contains another loop in order to detect distance minus the estimated radius to scale down or up depending on the space between. However I have failed miserably.

I know this require to reassign loops but I think I haven´t done it in a proper way. Objects are always scaled down.

my results so far

the pseudoagorithmin used

$\endgroup$
1
$\begingroup$

The easiest way to avoid intersection is by using Close packing Node. Which is available on Animation Nodes + Extra Nodes build.

enter image description here

enter image description here

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.