Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How did you go about finding intercepts in what I assume is an N-body system then?

(1 edit)

It's pretty brute-force right now -- I predict trajectories for everything (planet, moon, ships) a few hundred frames ahead with a gravity-only simulation. I also predict a hypothetical bullet if it were just fired from the player's ship, and then check along its path to find the closest ship it ever approaches in the future. Only celestial bodies attract, so that cuts down on computation.