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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user