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.

  • 1
    Don't know about C4D, but there is a physics plugin for After Effects called Newton 2 that can achieve that. – MEGA Sep 19 '17 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 – stib Sep 20 '17 at 1:22

I solved this using the built in Foam particle render - it does have basic collision avoidance

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.