I have create a C++ class and this class spawn projectile.
Then I create a blueprint from the class and drag blueprint into scene. (It’s a spawn point)
My question is no matter how I rotate the actor in scene the spawn direction won’t change.
But GetActorRotation() refer to the root of actor right?
I use GetActorRotation() as rotation of my SpawnActor’s rotation like code below.
World->SpawnActor<AFPSProjectile>(ProjectileClass, GetActorLocation(), GetActorRotation(), ActorSpawnParams);
Did I do it wrong?
Please help me figure this out, thanks.