Download

Add impulse to projectile to hit specific target point

I asked this in the answer hub but i think this might be a better place for it, but sorry if you see both posts :slight_smile:

I am working on a project where the AI needs to be able to decide on an target impact location on the map and add impulse to a projectile (one which is normally controlled by physics) to make it hit that point. I have been running around lots of options in my head to figure out the best way to do this manually (using something like the math implemented here: http://www.ajdesigner.com/phpprojectilemotion/range_equation.php) but is there a better way to do it? I have learned that often i do things manually when there are already nodes that could do it much more efficiently :slight_smile:

if you add projectile movement component, there is option to make projectiles homing. So set target, shoot it in general direction of target and it should go there.