Ive been attempting to make a 2D side scrolling shooter. Howeverm=, i cant seem to get any kind of raycasting to work with 2D colliders. Ive been told to try linecast but i do believe that they cannot return information about the hit. Does anyone have any suggestions as to how i can go about achieving a raycast shooting mechanic to work with 2D colliders?
↧