distance now calculated from end of arm to object