How do I find the distance to a target along the players aim, if the player is not looking directly at the target?
How do I find the distance to a target along the players aim, if the player is not looking directly at the target? Ive set up a targeting function that currently gets the closest target within an FOverlapResult. I need the target closest to the players aim, not the player themselves. I think(mathematically) this is a matter of finding the longer cathetus of a right angle, where the hypotenuse is the actual distance to the target. Im not familiar with what functions, if they exist, would do this.
(comments are locked)

Your answer
Follow this question
Once you sign in you will be able to subscribe for any updates here