feat: 启用物理调试绘制并调整技能配置与移动逻辑

- 启用PhysicsSystem2D的Aabb调试绘制以辅助碰撞检测
- 将射手英雄的技能由[6002,6100]更新为[6005,6006]
- 为SMoveComp添加isHorizontal属性,强制水平移动时保持Y坐标不变
- 技能施放延迟优先使用技能配置的ready值,提高配置灵活性
- 将技能6001和6005的结束类型由animationEnd改为collision,使伤害触发更精确
This commit is contained in:
walkpan
2026-03-15 13:03:34 +08:00
parent 69c55400ba
commit 211f48b6aa
6 changed files with 20 additions and 5 deletions

View File

@@ -42,6 +42,9 @@ export class SMoveDataComp extends ecs.Comp {
/** 结束类型 */
endType: EType = EType.collision;
/** 是否强制水平移动 */
isHorizontal: boolean = true;
/** 攻击偏移X - 从视图层传递 */
atk_x: number = 0;
@@ -77,6 +80,7 @@ export class SMoveDataComp extends ecs.Comp {
this.s_uuid = 0;
this.runType = RType.linear;
this.endType = EType.collision;
this.isHorizontal = true;
this.atk_x = 0;
this.atk_y = 0;
this.isMoving = false;