Hi again. Sorry if this is a dumb question ( mine always are )
But why do we need this last bit of code here? ( GetOwner()->GetActorRotation(); )
I don’t understand its use.
FRotator DoorRotation = GetOwner()->GetActorRotation();
DoorRotation.Yaw = CurrentYaw;
Vs
FRotator DoorRotation;
DoorRotation.Yaw = CurrentYaw;
Both seam to work when testing. But I am unsure as to why we apply the rotation of our actor to the door rotation only to define it with CurrentYaw a moment later. Thanks!