Skip to content

.solveArcStatic()

Alex edited this page Aug 20, 2020 · 1 revision

Ballistics.solveArcStatic(): u8

  • Public
  • Solve firing angles for a ballistic projectile with speed and gravity to hit a fixed position.
  • Returns number of unique solutions found: 0, 1, or 2.

Input Buffer

Index Value
0 X of a point that projectile will fire from
1 Y --"--
2 Z --"--
3 scalar speed of projectile
4 X of a point that projectile is trying to hit
5 Y --"--
6 Z --"--
7 force of gravity, positive down

Output Buffer

Index Value
0 X of firing solution (low angle)
1 Y --"--
2 Z --"--
3 X of firing solution (high angle)
4 Y --"--
5 Z --"--