Home > Software engineering >  C implementation of artillery trajectory
C implementation of artillery trajectory

Time:11-21

Please teach, thank you (can't ignore air resistance)

CodePudding user response:

To give a formula to calculate it out from the physics

CodePudding user response:

First given initial velocity, the elevation and resistance, get the formula,
And then give a series of time: 1 s, 2 s, 3 s,,,
Take time into formula get height, get two dimensional array {s, H}, the second dimension of paintings

CodePudding user response:


The simplest is parabola??

CodePudding user response:

Is a parabola, according to the formula to calculate the x, y coordinates, and then mapped out

CodePudding user response:

https://docs.microsoft.com/zh-cn/windows/win32/api/wingdi/nf-wingdi-polybezier

CodePudding user response:

What you said is Bessel curve? Also pretty is much used in game development
  • Related