Hello!
Currently I’m working on a space shooter game to improve my skills at programming.
Now I’m facing the following problem.
When the user taps somewhere on the screen, the player’s ship should fire a missle in the direction of the tap location (event.x, event.y). But it shouldn’t stop there, it shall pass the screen.
I’ve attached an image for a better understanding:

How can I make this happen, what’s the logic behind it?
Thanks for the help & best regards
