Projectile not able to shoot at aimpoint on ground but works fine in skybox?

So i have an Arrow that shoots fine if aimed at the skybox, but if i aim at any ground it will go to the 0, 0, 0 vector. I have looked through my settings of the ProjectileMovement but can’t get it working.

Any advice would be greatly appreciated.

@RW.N It would be great to see your LineTrace and how you shoot your Arrow. Without it, it is impossible to get the issue.

I recorded a video, hope it can be of better understanding now :slight_smile:
Video: 2022-12-17 11-02-49

After the screen turns black i switch from blocking hit to overlap hit, then the arrow spawns slightly to the left of the crosshair and not in the trace location.

Hey @RW.N! Welcome to the forums!

If you could show us the line trace code, this is likely a very easy fix, as it looks like you need to pass in the hit location, there’s a vector missing somewhere :slight_smile: I suggest using WinKey+Shift+S and snipping your code and pasting that into the reply so we can see what’s going on. It’s pretty much going to be necessary, unfortunately.

Aside: I also REALLY like that character and projectile! Assuming they aren’t handmade, where did you get them?!

Thank you for the reply @Mind-Brain
Here is a print screen of the blueprint:

Yes, most likely something small but hard to find for a newbie like me.
This is my first time using Unreal Engine and the first guide i have been following.

You can find the character assets if you search for Paragon Sparrow , it’s free.
Multiple skins inside there also.

Hey again @RW.N.

Try replacing this:
image

With a “FindLookAtRotation” with the start being ArrowSpawnLocation and the end being Impact Point and plug the output into Arrow Spawn Rotation. :slight_smile:

Thank you so much, @Mind-Brain :slight_smile:
Works like a charm!
Can i ask for learning purposes why the MakeRotFromX and the Subtraction method did not work?

Of course! I’m no mathematician, but I believe the subtraction method gives you a vector, and you were only using the X float of a set of 3 floats which is only rotating the X axis of the arrow (barrel roll axis) so it was working but it was just spinning the arrow. The other 2 parts of the Rotation were becoming 0, and you needed all 3. :slight_smile:

Sounds like i have a lot to learn about this.
Thanks for the help again :slight_smile:

1 Like