I have a 3d game with a static camera and a projectile that can go outside the cameras fov.
I want to detect that and tell the player how far out the projectile is in the event that it has gone offscreen. Counting from the cameras screen bounds.
Ideally I also want to display an arrow on the edge of the screen to tell the player where the projectile is and this is where I’m lost.
I know there’s a function that detects whether actors are being rendered but I don’t know how to detect the cameras screen bounds to properly display the arrow on the very edge of the camera.
Plus I need the screen bounds to accurately calculate the distance of the projectile.
It’s basically a 3d sidescroller.
Hope someone can point me in the right direction.