feat: 启用物理调试绘制并调整技能配置与移动逻辑
- 启用PhysicsSystem2D的Aabb调试绘制以辅助碰撞检测 - 将射手英雄的技能由[6002,6100]更新为[6005,6006] - 为SMoveComp添加isHorizontal属性,强制水平移动时保持Y坐标不变 - 技能施放延迟优先使用技能配置的ready值,提高配置灵活性 - 将技能6001和6005的结束类型由animationEnd改为collision,使伤害触发更精确
This commit is contained in:
@@ -70,6 +70,12 @@ export class SMoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
|
||||
node.position.y + moveComp.atk_y,
|
||||
node.position.z
|
||||
);
|
||||
|
||||
// 如果开启水平移动开关,强制目标Y等于起点Y
|
||||
if (moveComp.isHorizontal) {
|
||||
moveComp.targetPos.y = linearPos.y;
|
||||
}
|
||||
|
||||
moveComp.rePos(linearPos);
|
||||
|
||||
// 设置旋转角度
|
||||
|
||||
Reference in New Issue
Block a user