Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

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.