It makes me confused. Why we use GetForwardVector
here, not GetComponentRotation
.
And I have compared the two values, they are different.
FRotator const BarrelRotator1 = Barrel->GetForwardVector().Rotation();
FRotator const BarrelRotator2 = Barrel->GetComponentRotation();