I need to drive a large number of small 2D cars around on screen in a fairly random fashion... I have the Trapcode Suite. I'd really like them not to overlap each other. What's the easiest way to achieve this? Any good tricks using C4Dlite maybe? At the moment I'm using Particular to splatter them all over the screen, and it looks a bit rubbish.
-
1Don't know about C4D, but there is a physics plugin for After Effects called Newton 2 that can achieve that.– MEGASep 19, 2017 at 7:50
-
You can do it with expressions, there is a sampleImage function which you could call for perimeter points on each car to find out if they're overlapping, is.gd/cXC6Il You could also just fudge it by avoiding cars within a certain radius. But it would be super slow for lots of cars. If it was my project I'd do it with a script, using something like the Boids flocking algorithm. en.wikipedia.org/wiki/Boids– stibSep 20, 2017 at 1:22
2 Answers
I solved this using the built in Foam particle render - it does have basic collision avoidance
I solved it with the enable flocking option attract 0% separate 20%