collision line detection for origin