I'm trying to recreate projectile trajectories in Java, however, I get stuck on some things. I've watched a lot of videos explaining formula's and stuff but they have a target in their equation and I do not. What I mean by this is that they have a range to calculate their bullet drop upon, but I'm trying to figure out how much the bullet will eventually drop.
What I am currently working with is:
dropDistance = (9,807 / 2) * t²
I am not mathematician whatsoever and I am literally stuck on this and I have no clue how to implement this when the range of the target is unknown. It's supposed to work in 3D space (x,y,z) but I think only the Y is needed in the formula?
s = (u * t) - (0.5 * a * t * t)to calculate vertical displacement from the origin givenu- the initial vertical velocity,t, the time elapsed, anda, in this case -9.8 (m/s/s) - assuming you're trying to recreate trajectories on earth. You can repeat this in 2 or 3 dimensions to get a point in 2 or 3d space. - user7953532