mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
fix(BulletBase): 将碰撞检测从body_entered改为area_entered
修复子弹碰撞检测逻辑,使用area_entered代替body_entered以正确检测碰撞区域 同时调整Volcano子弹的切割速度为0.7以改善游戏体验
This commit is contained in:
@@ -88,13 +88,13 @@ func _physics_process(_delta: float) -> void:
|
||||
tryDestroy()
|
||||
|
||||
func setupCuttable(cutSpeed: float):
|
||||
body_entered.connect(
|
||||
area_entered.connect(
|
||||
func(body):
|
||||
var entity = EntityTool.fromHurtbox(body)
|
||||
if entity:
|
||||
speedScale = cutSpeed
|
||||
)
|
||||
body_exited.connect(
|
||||
area_exited.connect(
|
||||
func(body):
|
||||
var entity = EntityTool.fromHurtbox(body)
|
||||
if entity:
|
||||
|
||||
Reference in New Issue
Block a user