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

fix(EffectController): 修复oneShot效果后未释放自身的问题

feat(EntityBase): 添加获取生命值百分比的方法
refactor(BulletBase): 重命名scene变量为parentScene以提高可读性
fix(BlueCrystal): 修正弹道追踪旋转计算错误
style(EffectBase): 调整场景文件格式和属性顺序
This commit is contained in:
2025-12-14 13:36:48 +08:00
parent 04dbd5d6db
commit b5edbc5b13
5 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ func ai():
if is_instance_valid(tracer):
var tracker = tracer.getTrackingAnchor()
var targetAngle = position.angle_to_point(tracker)
trail.rotation = - Vector2.from_angle(rotation).angle_to(Vector2.from_angle(targetAngle)) * 0.75 / (speed / initialSpeed)
trail.rotation = - Vector2.from_angle(rotation).angle_to(Vector2.from_angle(targetAngle)) / (speed / initialSpeed)
PresetBulletAI.trace(self, tracker, 0.07)
else:
trail.rotation = 0