This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
C/C++ reimplementation of the code. | |
Read: https://www.forrestthewoods.com/blog/solving_ballistic_trajectories/ | |
Source: https://github.com/forrestthewoods/lib_fts/blob/master/code/fts_ballistic_trajectory.cs | |
Dependencies: https://github.com/Microsoft/DirectXTK/wiki/SimpleMath | |
HPlass (hermann.plass@gmail.com) - 2020 | |
*/ | |
bool solve_ballistic_arc_lateral(const VEC3 proj_pos, const float lateral_speed, const VEC3 target_pos, const float max_height, VEC3& fire_velocity, float& gravity) | |
{ |
NewerOlder