- Home /
How to find cannon elevation angle to fire a projectile to known range?
Hello!
I have a 3d battleship simulation game, with great ship guns. I made a rigidbody projectile, and I can fire it from the gun. I use gravity and a little drag (0.01) on the projectile, to simulate air resistance. The trajectory is computed correctly by the physique engine. For example the gun can fire a projectile up to ~30.000 meters, with 760m/s muzzle velocity at 30 degree cannon angle, exactly like a real 14inch ship gun.
In reality the battleship fire control system is calcule all the firing parameters, the gunners must find only the target range by an optical "range-finder". The most important parameter is the cannon elevation angle. So to control the shoots, the firing system must calcule the exact cannon elevation angle for any arbitary firing range. Since the trajectory path with real drag is a very complicated mathematical function, I would like to find an easier way.
So any idea what is the easiest method to find the exact cannon angle for a specifique range? Should I make a simulation scene apart, for call the predict firing datas?
Answer by simiel7 · May 18 at 08:47 PM
Hi @Lieutenant_KD
Will it help, somebody already solved your problem?
Thanks for the reply! Unfortunately not, this is not the same situation. The formula for calculate the angle or range is well known. The probleme is the calculation of drag. With real air resistance, the formula is more complex. But unity physics engine use a simplified drag for the simulations. I think I would like to know how it take in account in the general formula of trajectories.
Your answer
Follow this Question
Related Questions
help with shooting projectile along a curve path 1 Answer
How do I arc a rigidbody so it lands on a target? 2 Answers
How to calculate the angle of a trajectory to hit the target 1 Answer
Aim preview for projectile trajectory 1 Answer
Projectile trajectory velocity and angle instead of force with a rigidbody 2 Answers