Skip to content

.solveLateralMoving()

Alex edited this page Aug 20, 2020 · 1 revision

Ballistics.solveLateralMoving(): u8

  • Public
  • Solve the firing arc with a fixed lateral speed at a moving target.
  • Returns 1 if a valid solution was found, otherwise 0

Input Buffer

Index Value
0 X of a point that projectile will fire from
1 Y --"--
2 Z --"--
3 X of a point that projectile is trying to hit
4 Y --"--
5 Z --"--
6 scalar speed of projectile
7 X of velocity of target
8 Y --"--
9 Z --"--
10 height for projectile to peak at

Output Buffer

Index Value
0 X of firing solution
1 Y --"--
2 Z --"--
3 X of point where moving target will be hit
4 Y --"--
5 Z --"--
6 gravity necessary for projectile to hit precisely max height ( input[7] )