From 0592cb2c045fb00ca4362e0941e39ea90ac25b8c Mon Sep 17 00:00:00 2001 From: meishibiezb <750783119@qq.com> Date: Tue, 17 Mar 2026 11:48:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=8B=E8=BD=AC=E9=95=9C=E5=A4=B4?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E6=97=8B=E8=BD=AC=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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/lonese/CameraPawn.cpp b/Source/lonese/CameraPawn.cpp index 6eb2e28..973d3ad 100644 --- a/Source/lonese/CameraPawn.cpp +++ b/Source/lonese/CameraPawn.cpp @@ -17,8 +17,15 @@ void ACameraPawn::CameraZoom(const FInputActionValue& Value) void ACameraPawn::CameraRotate(const FInputActionValue& Value) { auto f = Value.Get(); - FRotator r = FRotator(0.0f, f * RotateSpeed, 0.0f); + FRotator r = FRotator(0.0f, -f * RotateSpeed, 0.0f); AddActorWorldRotation(r); + + // ͬʱÐýת¿ØÖÆÆ÷ + auto c = Cast(FollowTarget->GetController()); + if (c) + { + c->SetControlRotation(GetActorRotation()); + } } void ACameraPawn::CameraMove(const FInputActionValue& Value)