How do I detect if the player is looking at an object?

Hi, you can use dot product and forward vector to determine if something is visible or not against your pawn or another object, I built this little function to know if an actor is visible for a pawn:

3 Likes