Jump to content
  • Advertisement
Sign in to follow this  

Solving initial velocity problems

This topic is 4909 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm desperately looking for a solution to this problem. No, it doesn't pertain to game physics, well, I'm certain it does but any help for a budding game programmer will be greatly appreciated. For the life of me, I cannot figure out how to solve a problem for initial velocity involving non-horizontal projectile motion. How can you find the initial velocity of a vector with the just the angle of projection and it's target coordinates? Again, any help would be greatly appreciated :)

Share this post

Link to post
Share on other sites
Is this homework? ...

| /|
| v / |
| / |
| / |
|/) θ |
| d |

d (the displacement), θ (the firing angle), g (global gravity)
v (initial velocity)
Combining θ and v using trig. we have a relationship between the two initial velocities in the x and y axes vx and vy:
vx = v cos θ
vy = v sin θ

Now the only component of the velocity that changes due to vertical acceleration due to gravity is the y component. Thus the x component (vx) is constant over the time it takes to travel d:
t vx = d
therefore vx = d/t
and then v cos θ = d/t

As for the y component, when the projectile lands it will have the same speed downwards as it did upwards to begin with, which means that:
vy' = vy - 1/2 g t2 = -vy
therefore 2vy = 1/2 g t2
and thus v sin θ = 1/4 g t2

The two things we don't know in this mess is v and t. But we have two equations. It's just algebra from here.

[Edited by - Doc on February 10, 2005 1:44:11 AM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!