技能碰撞改回物理碰撞

This commit is contained in:
2025-03-31 08:16:41 +08:00
parent 798a831227
commit 063764dc82
5 changed files with 59 additions and 38 deletions

View File

@@ -54,7 +54,6 @@ export class HeroSkillSystem extends ecs.ComblockSystem implements ecs.ISystemUp
view.node.parent, // 父节点
config.uuid, // 技能ID
new Vec3(targets[0]?.get(HeroViewComp).node.position.x, targets[0]?.get(HeroViewComp).node.position.y, 0), // 目标位置
targets[0]?.get(HeroViewComp),
view
);
caster.get(HeroViewComp).playSkillEffect(config.uuid);