Suggest Projectile Velocity problem

Hi, I’m trying to use this function but can’t figure it out. So my goal is to add a velocity to the projectile at specefic time and send it to specific place. Firstly I create the projectile with 0 “initial speed” but then I want to add an impulse to it with the velocity.

Just adding the velocity works really well with “homing” but I don’t want to use homing. I want to shoot it to specific place.

Debugging works ok but as you can see in the left top corner it returns 0,0,0

Why is that so?

Because if the path got blocked it will fail to return the velocity.
I met this before and don’t know how to resolve it.
I think it’s a feature?not sure.
So I used another one(suggest projectile custom arc).
That one always succeeds.
But the flying speed can’t change.

I think I just found the problem right now and it’s pretty dumb.

Trace Option: Do not Trace solves it…

UnrealEditor_LakhcjNdbb

1 Like

I tried that too…
but didn’t work for me.
So I given up to use it.
Maybe next time I try again…

1 Like

But now I have a new problem, this tracing is not accurate, projectile is not following it. This function is really a strange one…

UnrealEditor_ruN6ZeeLjJ

Did you change the gravity scale?
That doesn’t allow

Yeah, gravity is the problem :slight_smile:
Just figured it out, okay I guess it works for now! Thanks

1 Like

can’t u just add velocity while it’s in the air to change the speed?

No,the velocity it returned is a initial velocity,like impulse. If change the velocity on the way .it won’t go to the target point anyway more.

Not sure but multiplying it with float workes for me, but maybe it’s because of the short range so I can’t spot the difference


Mine doesn’t work.

I figured out the issue with the trace: it’s not ignoring the player, so the player is actually blocking the trace, and then the trace is considered as blocked and can’t find a solution.

The projectile method itself accepts ActorsToIgnore, the BP version just doesn’t pass it.

Created a method on my own in c++, added ActorsToIgnore argument and param, and it works now.

Note: if you do add that, don’t forget to add both the character and the target platform as ActorsToIgnore