1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 16:01:53 +08:00

fix: 调整子弹追踪旋转速度以改善游戏体验

将子弹追踪旋转的插值系数从0.15降低到0.1,使子弹转向更加平滑。这可以避免子弹在追踪目标时出现过于剧烈的转向,提升游戏体验。
This commit is contained in:
2025-08-28 12:45:54 +08:00
parent 31426987a2
commit d28ee8f9d2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4,6 +4,6 @@ class_name Diamond
const traceTime = 2000
func ai():
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.15 * clamp((traceTime - timeLived()) / traceTime, 0, INF))
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.1 * clamp((traceTime - timeLived()) / traceTime, 0, INF))
canDamageSelf = !(timeLived() >= traceTime)
forward(Vector2.from_angle(rotation))