Calculate initial velocity of a 3d vector-based projectile
Posted
by
Frotty
on Game Development
See other posts from Game Development
or by Frotty
Published on 2012-07-01T19:00:03Z
Indexed on
2012/07/01
21:25 UTC
Read the original article
Hit count: 217
vector
|trajectory
Okay, so I got a Projectile with 2 Vectors, position and velocity. I now want to calculate the initial velocity for it in order to reach a specific point on the map.
Or actually, how high has the start z-velocity to be (because x and y are probably defined by a speed variable) in order for the projectile to hit the marked position.
The projectile is influenced by a constant gravity vector.
All calculations are done 32 times per second.
I want this, because I don't want to use a parabola function, so the projectile can still be influenced by other sources, simply adding some velocity.
I didn't really find anything referring to that topic and would be glad for every helping answer, Thanks.
© Game Development or respective owner