1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-02 09:21:54 +08:00

fix: 修正Diamond子弹的旋转计算,确保追踪效果更平滑;更新Chick角色的生成参数

This commit is contained in:
2025-08-27 15:41:52 +08:00
parent 1a918a7a14
commit a3ae7ae887
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,6 +4,6 @@ class_name Diamond
const traceTime = 1000
func ai():
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.2 * (traceTime - timeLived()))
rotation = lerp_angle(rotation, position.angle_to_point(launcher.currentFocusedBoss.position), 0.2 * ((traceTime - timeLived()) / traceTime))
canDamageSelf = !(timeLived() >= traceTime)
forward(Vector2.from_angle(rotation))