Deriving formula to calculate theta for artillery

  • #1
super6logan
3
0
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
Lojzek
249
1
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.
 

Suggested for: Deriving formula to calculate theta for artillery

Replies
9
Views
176
Replies
2
Views
136
  • Last Post
Replies
2
Views
4K
Replies
2
Views
2K
  • Last Post
Replies
3
Views
1K
Replies
6
Views
800
  • Last Post
Replies
6
Views
2K
Replies
3
Views
810
  • Last Post
Replies
3
Views
6K
Top