From e57ac424ff8136b48167d9c0fbe59dac4e1008ac Mon Sep 17 00:00:00 2001 From: meishibiezb <750783119@qq.com> Date: Tue, 17 Mar 2026 11:54:41 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E9=87=8D=E7=BD=AE=E6=91=84=E5=83=8F?= =?UTF-8?q?=E5=A4=B4=E6=97=8B=E8=BD=AC=E7=9A=84=E6=97=B6=E5=80=99=E4=B9=9F?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E6=8E=A7=E5=88=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/lonese/CameraPawn.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/lonese/CameraPawn.cpp b/Source/lonese/CameraPawn.cpp index 973d3ad..80575c7 100644 --- a/Source/lonese/CameraPawn.cpp +++ b/Source/lonese/CameraPawn.cpp @@ -45,6 +45,13 @@ void ACameraPawn::CameraReset(const FInputActionValue& Value) SpringArmComponent->TargetArmLength = InitialArmLength; SetActorRotation(InitialRotation); SetActorRelativeLocation(FVector::ZeroVector); + + // ͬʱÐýת¿ØÖÆÆ÷ + auto c = Cast(FollowTarget->GetController()); + if (c) + { + c->SetControlRotation(GetActorRotation()); + } } // Sets default values