From ebedac8c90f66042ef6676ebcbdbbba1bbd52ca0 Mon Sep 17 00:00:00 2001 From: GAO <2206767478@qq.com> Date: Mon, 28 Jul 2025 17:29:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=A6=E8=BE=86=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E4=BD=8D=E7=BD=AE=E6=9B=B4=E6=96=B0=E4=B8=8E=E6=96=B9?= =?UTF-8?q?=E5=90=91=E6=9B=B4=E6=96=B0=E4=B8=8D=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/controls/VehicleAnimationSystem.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/map/controls/VehicleAnimationSystem.vue b/src/components/map/controls/VehicleAnimationSystem.vue index f4d43c4..d9ac2a9 100644 --- a/src/components/map/controls/VehicleAnimationSystem.vue +++ b/src/components/map/controls/VehicleAnimationSystem.vue @@ -163,7 +163,7 @@ function updateVehicleAnimations(deltaTime) { // //优先使用动画系统内部的heading值 const currentHeading = animData.heading !== undefined ? animData.heading : (vehicle ? vehicle.heading : 0); - if (!animData.lastHeading || Math.abs(animData.lastHeading - currentHeading) > 5) { + if (!animData.lastHeading || Math.abs(animData.lastHeading - currentHeading) > 10) { feature.setStyle(props.getVehicleStyle(id, currentSpeed, currentHeading)); animData.lastHeading = currentHeading; } @@ -254,7 +254,7 @@ function ensureContinuousMovement(animData, vehicle, currentTime, deltaTime) { // // 更新方向为预测方向 animData.targetHeading = predictedHeading; // 可以选择立即更新或逐渐更新 - // animData.heading = predictedHeading; // 立即更新 + animData.heading = predictedHeading; // 立即更新 } // 缓慢降低速度,但保持最低速度