Projectile Movement Component help please

Hi all, does anyone know how to set the direction of a projectile movement component because I’ve tried messing around with the velocity but no matter what (even when all are set to 0.0), the projectile just falls on the z axis and since I’m making a 2D game, that is of no use to me because I want it to be able to fire in certain direction on the X or Y axis.
Thank you :slight_smile:

Did you set the InitialSpeed?

Yeah I’ve set it to lots of different numbers but that doesn’t seem to be the problem

Without some code it’s going to be hard to pinpoint the issue.

Did you create a BP from the C++ class? If so, did you check if the values changes you made in C++ are also set in the BP?

Try setting the Projectile component’s gravity scale to zero;

2 Likes

Thank you, this worked!