Wrote the perpendicular shooting function!!!