Could you not assign a radial fields magnitide to the closeness factor, so that when the object goes close to the other object a field (thats parented to the other object) then increases its magnitide based off the distance to "push" it away
"No pressure, no diamonds" Thomas Carlyle