Mortar Trajectory

Maybe this will help if you need to modify the code or want to write it yourself. SPV is all well and good, but if you want the projectile to have a pre-set initial velocity (more realistic) you’ll probably want to code in the angle calculation yourself, there’d be a few factors to consider.

In Gears of War they used a different system again, you determined the hit location while “charging” the weapon, and it would launch the projectile. If I recall correctly and in the interests of gameplay; rounds would always hit the ground at the same time regardless of the difference in distance. Unrealistic, but good for game-play. SPV won’t help you with that though.

You could plot the trajectory based on the equation and then have the projectile follow the points along it, kinda like an invisible spline, if you wanted to do the above.