consistent collisdetection example with linked line