-
Expression help – movement by object proximity
Hi all. Can anyone help me with this one?
Imagine a comp with two circles.
Circle A is moving around randomly.
Circle B is static.
When circle A moves near to circle B (lets say within 200 pixels), I would like circle B to move away in the opposite direction, then return to its start position when circle A is over 200 pixels away.
I’ve found several scripts, but they always seem move the circle in a specific X/Y direction rather than away from the other object.
Does something like this exist?
Thanks.