string-pulling path ported from Recast/Detour