Calculating missile trajectory around orbits before shooting [closed]
- by Onofrio
Possible Duplicate:
Calculating missile trajectory around orbits before shooting
I'm building a game with Unity3D. It's a Gravity Wars clone. Both player and AI turrets shoot missiles at each other (giving an Angle and a Power variables), trying not to crash missiles on planets.
But here's my question: how do I make AI calculate power and angle before shooting his missile, considering a planet's gravity too?