You are not logged in.
Pages: 1
I have the following values in my world:
- the distance in meters to the target
- the height offset in meters
- the velocity of the projectile m/s
- the gravity.
- and no air resistant.
I need to calculate the angle off the cannon so the projectile will hit the target.
I have tried to make a formula but im not good at "advanced" maths.
Please help!
Offline
Man, this is tricky. The height offset complicates things a ton.
Saying that the cannon is s metres from the target horizontally, the target is h metres above the cannon, the cannon is angled at θ degrees from the ground and fires the ball with an initial velocity of v m/s, and acceleration due to gravity is g m/s², I get the following formula:
From there, the job is to mess around with it until it's in the form θ = ...
Why did the vector cross the road?
It wanted to be normal.
Offline
The world I am using is gmod
www.garrysmod.com
Offline
Pages: 1