diff --git a/Source/RWTHVRToolkit/Private/Pawn/Navigation/TurnComponent.cpp b/Source/RWTHVRToolkit/Private/Pawn/Navigation/TurnComponent.cpp index b9e73671e4a1fd16489d02a4b2cca9880a5d1112..9388a11d61314e83624b5a173e831192f07c6b6e 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/Navigation/TurnComponent.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/Navigation/TurnComponent.cpp @@ -112,7 +112,7 @@ void UTurnComponent::OnBeginSnapTurn(const FInputActionValue& Value) void UTurnComponent::RotateCameraAndPawn(float Yaw) const { const FVector OrigLocation = VRPawn->HeadCameraComponent->GetComponentLocation(); - + const FRotator OrigRotation = VRPawn->GetActorRotation(); const FRotator NewRotation = FRotator(0, VRPawn->GetActorRotation().Yaw + Yaw, 0);