I am currently using an orthographic cam in a shmup kind of game, and trying to detect when bullets get out of the screen.
Does anyone know how i can do that please?
Thanks a lot.
Well, somehow i found a way using trigonometry rules:
if bullet.position.x > Math.tan(camfov) * campos.z
then the bullet is out of the screen.
Well i need to refine that so that it works in various cam positions and that it takes into account the bullet's size and that should do the job.