Targeting computer (v0.0.12)


Tired of spraying a cloud of bullets, only for all of them to just barely miss? Let our Targeting Computer spare you the spatial guesswork!

This system analyzes bullet trajectories, identifying intercept possibilities in real-time. Keep an eye on the aiming indicator: when it turns from yellow to orange, you've got your best shot.

Now you can snipe enemy ships from the other side of the planet.

Make every shot count!

Comments

Log in with itch.io to leave a comment.

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.