- Joined
- Jun 12, 2016
- Messages
- 74
I'm making an AI to one of my bosses, one of it's skill is a sniping skill. Idk how to program the physics behind this, but I want this: The boss will shot a projectile that must intercept the target on it's future position (point). It sounds easy enougth but that is bugging my head since yesterday.
I did calculate the target's velocity by taking the diference of it's position on a time span of 0,1s, with that I have everything with it, it's angle, it's speed and it's direction and I have the speed of the projectile as a constant 1000 but I need to know the angle that my boss should shot it.
Please, realy need a help with this.
I did calculate the target's velocity by taking the diference of it's position on a time span of 0,1s, with that I have everything with it, it's angle, it's speed and it's direction and I have the speed of the projectile as a constant 1000 but I need to know the angle that my boss should shot it.
Please, realy need a help with this.