Deriving formula to calculate theta for artillery

  • #1

Main Question or Discussion Point

I play an online shooter game with artillery that players can use. As best I can tell, the shell exits the artillery at 400m/s, I don't know if that's correct because units aren't listed in the code but it sounds logical. I know the distance to target as well, I only need to know what angle to aim the barrel to hit to target. Here's the formula I've derived as it looks in excel with A1 being the cell with the target range:
=(DEGREES(ASIN((9.81*A1)/(400^2))))/2
and in an equation, r as range to target:
(sin-1((9.81R)/(4002))/2=[tex]\Theta[/tex]

The problem is that if I plug a range like 650m into it the output in excel is 1.14201, an impossible number but I know that the artillery can hit ranges over 700m. Does this imply that the 400m/s V0 I have is wrong?
 
Last edited:

Answers and Replies

  • #2
249
0
The formula is correct, but the projectile velocity is probably much lower (maybe 400 km/h?). I assume the game does not consider air resistance (you can check this by observing the symmetry of the trajectory). You should use your formula for range(angle) to calculate theoretical range (with your guess for projectile velocity). Then you measure the actual range at that angle in the game. Since the range is proportional to the square of the
projectile velocity, you simply divide your guess for projectile velocity by the square root of
the ratio between calculated range and measured range. For example: if your calculated range is 9 times too large, you divide projectile velocity by 3.
 

Related Threads on Deriving formula to calculate theta for artillery

  • Last Post
Replies
0
Views
5K
  • Last Post
Replies
10
Views
4K
  • Last Post
Replies
4
Views
542
  • Last Post
Replies
1
Views
2K
Replies
8
Views
2K
Replies
2
Views
5K
Replies
1
Views
1K
Replies
4
Views
3K
Replies
1
Views
2K
  • Last Post
Replies
1
Views
1K
Top