2

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.

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

2 Answers 2

1

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

0
-1

I solved it with the enable flocking option attract 0% separate 20%

1
  • In Trapcode Particular?
    – tomh
    Commented Oct 31, 2022 at 11:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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