- Home /
Question by
Pakislav · Jul 30, 2017 at 01:00 PM ·
physicsprojectiletrajectory
How to: Lead on a projectile trajectory. Can't get T without angle without lead without T without angle etc...
I find myself locked out of a solution...
I want to calculate a lead for my projectiles trajectory to hit a moving target.
For that I need Time of Flight.
For that I need angle.
For that I need proper lead.
For that I need Time of Flight.
Etc. Etc. Etc.
How do I do this?
The way I hit stationary targets is this: Instantiate projectile. Make it face target. Calculate required X angle based on velocity to hit target pos. Set projectile X rotation to that angle, addForce.forward.
Comment