Created a 2d ray cast that can be used to gauge distance to hitboxes