How to you make things move mid air?

Hi all

I am trying to learn UE5 and create my first game. I got to prior experiance and i’m learning as go. But now i have found a problem that in my mind feels like it should be easy but i can’t figure out a good way to solve it.

Im making a 2D side scroller game where you jump around and shoot stuff. Think Megaman kinda game. I want to have a boomerang weapon that curves back and goes over my head, but i can’t figure out a good way to make that happen. I tried using a spline and that got the flight curve i wanted right, but since the spline was attached to my character it also moved when i was moving / jumping and made it look wierd. Also when it eventually left the spline it just took of in a wierd trajectory.

So now i have been trying to play around with timeline and Lerp to change its velocity and i can make my boomerang do half of its curve now to it flys straight upward. Can probably figure out a crude way to do another 90° turn and fly back, but i think im maybe making it way more complicated then what it should be? Im just thinking about every game that has anything that curves mid air can’t go through this process right?

Any help or advise is greatly appriciated!

Edit:
This is my solution i have come to so far, its working if i only shoot one, but not working great.

Hi Rokkor, Welcome to the Forums.

2 Blueprint nodes that come to mind are ‘Predict Projectile Path’ and ‘Create Arc Path 2D’ (Part of Geometry scripting plugin - There is a ‘Convert Poly Path to Vector Array’ function that could be called on Poly Path struct)

I’m not sure about the specifics of implementation for either, just wanted to make you aware.

Thanks, i will have a look at those and see if i can get it to behave the way i want. Thanks for the tips :slight_smile: