# Parabolic trajectory problem

**URL:** https://forum.kirupa.com/t/parabolic-trajectory-problem/288599
**Category:** programming
**Created:** [May 18, 2009, 7:48pm UTC](https://forum.kirupa.com/t/parabolic-trajectory-problem/288599 "2009-05-18T19:48:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sir\_Realism](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Sir\_Realism](https://forum.kirupa.com/u/Sir_Realism)
#### Post date: [May 18, 2009, 7:48pm UTC](https://forum.kirupa.com/t/parabolic-trajectory-problem/288599/1 "2009-05-18T19:48:39Z")

</div>

Dear readers,

I have an extremely complicated mathematical problem which I just can’t get my head around.  
What I want is a system that makes one person aim at another person while his cannons bullets fly like mortars, so in a parabolic curve. In this situation I know:

- The distance between me and my enemy
- My cannons firepower
- Gravities strength

Of course I know more, but I think these are the only relevant things.  
I found a wikipedia article explaining my problem, but I haven’t done university in maths (yet), so I don’t understand anything about it: [http://en.wikipedia.org/wiki/Trajectory](http://en.wikipedia.org/wiki/Trajectory)

If the effect I want to have is not clear then here’s an example: [http://dan-ball.jp/en/javagame/ranger/](http://dan-ball.jp/en/javagame/ranger/)The archer (Sniper) in this game (Stick Ranger) can hit the enemies with his bow in a certain arch. I want that too!  
\*\*  
All I need is to know is the angle needed to get the cannonball to hit my enemy! \*\*  
Ow…It should be done in AS2…

I really hope someone can help me with this!

Cheers,

~Sir Realism
