improved raypickdistance