{"repo":"ujinf74/ballistic-solver","free":true,"listed":false,"github":"https://github.com/ujinf74/ballistic-solver","clone":"git clone https://github.com/ujinf74/ballistic-solver.git","description":"Native C/C++ ballistic intercept solver for moving targets with gravity and quadratic drag.","language":"C++","stars":42,"topics":["ballistics","cpp","mechanics","numerical-methods","ode","ode-solver","physics","projectile","simulation","broyden-method"],"license":"MIT","category":"game-templates","readme_excerpt":"ballistic-solver computes the launch angles to hit moving targets under gravity , quadratic air drag , and optional wind — for games, simulation, robotics, and targeting. Unlike vacuum / closed-form solvers, it simulates the projectile and solves the intercept numerically , so it stays accurate on strongly curved trajectories. Native C/C++ core with a stable C ABI and a modern C++ API ( bs::solve ), plus Python ( pip install ballistic-solver ), C#/Unity, and Godot bindings. https://github.com/user-attachments/assets/7de04137-61d9-4cf0-be5e-9804d6a9c67b Real-time 3D showcase — the built-in tracker leading a noisy, diving target with range rings, tracer trails, and a live hit-rate HUD ( examples/godot/ ). Applications. The solver only sees relative kinematics, so the same code drops into many domains — most visibly games and simulation (turret lead-targeting, projectile interception; see the demo above), and equally robotics (interception / capture), tracking, and other aiming / targeting problems. An optional position-only tracker ( bs.TargetTracker ) adds lead-fire from a noisy track. See benchmarks/intercept eval.py and examples/viz/ for cross-domain examples and accuracy comparisons. --- Quick start Python (PyPI) Requires Python = 3.10 . For tighter convergence without manually tuning every knob: For repeated solves, Python also provides a thin convenience wrapper: --- Demo (Unity) Highly curved trajectories under strong air drag, still converging to a hit against moving ta","default_branch":null,"files":null,"tree":[],"storefront":"/r/ujinf74","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ujinf74/ballistic-solver/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}