Projectile fall into a specific location

Hi everyone!
I have a question, i need my character fire a projectile who will always reach on a specific location, i have the start position in a vector and i have the destination position in another one.

How i can do to the character fire this projectile and it always end in the same destination? There’s any function to set the start position and the end posiition of a projectile?

Thanks!

There is a really nice helper function in blueprint that will help do just what you need. Check out the “SuggestProjectileVelocity” node. Plug in the parameters, and it’ll give you the output velocity to hit your target location.

1 Like

Hello! Thanks for the response, i tried to use it but it don’t make effect on my projectile. I’m doing it wrong? Here is a print, i added on my projectile’s blueprint.

You’ll need to plug the “Toss Velocity” output pin into something on your projectile movement component to tell assign it the suggested velocity. I am not very familiar with that component, but I imagine there is a node to set it’s velocity, or add an impulse to it that will achieve what you need.

Thanks! I will try do that :slight_smile: