Jump to content
  • Advertisement
Sign in to follow this  
E-Lo

Projectile Leading Question

This topic is 4436 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 having a hard time figuring out the best way to do this. Any insight would be appreciated since I'm not the greatest at math/physics. I have an initial shot position, a constant shot speed, an initial target position, and a constant target velocity. I am trying to figure out the shot direction and at what time it would hit the target. Fear not, this isn't homework, I've been out of school for quite some time now...I just want to figure this out. Thanks in advance!!

Share this post


Link to post
Share on other sites
Advertisement
alright, so I'm pretty sure I've figured out how to solve for time. which gives me the ability to find the point at which the two collide. with that, how can I find the direction vector between 2 points. would that be as simple as targetPos - initialShotPos?

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!