Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2007-10-22 05:24:06

Kristian02
Member
Registered: 2007-10-22
Posts: 1

Need help on trajectory calculation

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! roll

Offline

#2 2007-10-22 06:19:07

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Need help on trajectory calculation

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

#3 2007-10-23 00:45:03

Kristian02
Member
Registered: 2007-10-22
Posts: 1

Re: Need help on trajectory calculation

The world I am using is gmod

www.garrysmod.com

Offline

Board footer

Powered by FluxBB