Moving Objects With C slightly different

Hey there
I just started the course and are now on lecture 60. Moving Objects With C ++
My solution to open the door, is slightly different.

FRotator Owner = GetOwner()->GetActorRotation();/// .ToString();
UE_LOG(LogTemp, Warning, TEXT(“Default Rotation: %s”), *Owner.ToString());
Owner.Yaw = Owner.Yaw - 90;
GetOwner()->SetActorRotation(Owner);
UE_LOG(LogTemp, Warning, TEXT(“Modified Rotation: %s”), *Owner.ToString());

Privacy & Terms