intersections ray script

hi, guys I looking for a intersections script for rigging some things like car wheel or pulling and pushing objects, for example, tow point that
first one is a parent and the second one is ray point and its link to the parent and we can adjust its distance and single or all directions behavior locke or unlocked.
thank you so much