How can I set the direction of a projectile to match the player's direction?

I’m using Unreal Engine 5.1 and am trying to create a top-down 2D game. I’m trying to get the direction of a fired projectile to match the direction that the player is facing, but can’t figure out how to set the velocity when the projectile is ‘fired’. Can anyone point me in the right direction? The screenshot below shows how far I’ve gotten with this, I’m guessing that I can somehow set the velocity of the projectile after it is spawned.

Thank you for taking the time to read this!

hi,
are you using the projectile component ?

when you spawn the projectile you set the location but not the rotation of your character… try to set rotation to your characters rotation when spawning the bullet… for velocity you would normally do your characters ForwardVector * BulletSpeed…

hope this helps you :slight_smile:

cheers :vulcan_salute: