How do I get an Actor rotation to spawn where the wall is facing

Ah I got it to work, this definitely helped.

I just wrote in the rotator value:

SpawnShell(HitResult->Location, HitResult->Normal.Rotation());

instead of:

const FRotator Rot = Camera->GetComponentRotation();
SpawnShell(HitResult->Location, Rot);
1 Like