技能碰撞改回物理碰撞

This commit is contained in:
2025-03-30 16:59:40 +08:00
parent 67704725b2
commit 798a831227
85 changed files with 13428 additions and 7394 deletions

View File

@@ -41,27 +41,24 @@ export class Skill extends ecs.Entity {
// 设置节点属性
node.parent = parent;
node.setPosition(startPos);
console.log("加载预制体:",startPos,targetPos)
// console.log("加载预制体:",startPos,targetPos)
// 添加技能组件
const skillComp = node.getComponent(SkillCom); // 初始化技能参数
skillComp.ap = caster.ap;
skillComp.s_uuid = uuid;
skillComp.animType = config.AnimType;
skillComp.endType = config.endType;
skillComp.speed = config.speed;
skillComp.inTime = config.in;
skillComp.atk_count = 0;
skillComp.startPos = v3(startPos.x,BoxSet.GAME_LINE+35,0)
skillComp.targetPos = v3(targetPos.x,BoxSet.GAME_LINE+50,0)
skillComp.startPos = startPos
skillComp.targetPos =targetPos
skillComp.target = target;
skillComp.caster = caster;
skillComp.prefabName = config.sp_name;
skillComp.group = group;
skillComp.fac = group;
if(group==BoxSet.HERO){
skillComp.fac=0;
}else{
skillComp.fac=1;
}
skillComp.fac= group==BoxSet.HERO?0:1;
console.log(config.sp_name+"技能配置",skillComp);
// 初始化动画名称
skillComp.animName = config.animName; // 从配置获取动画名称