-
Notifications
You must be signed in to change notification settings - Fork 2
.solveLateralMoving()
Alex edited this page Aug 20, 2020
·
1 revision
- 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] ) |
Ballistics (c) 2020