This commit is contained in:
pan
2024-08-27 13:03:18 +08:00
parent c598e8964a
commit 45a230db33
4 changed files with 82 additions and 31 deletions

View File

@@ -62,7 +62,9 @@ export class CSkillComp extends CCComp {
m_pos = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE)
}
t_pos = v3(m_pos.x-this.node.position.x,m_pos.y-this.node.position.y) // 目标增量
// console.log("m_pos",this.node.position,m_pos);
// console.log("m_pos",m_pos);
// console.log("pos",this.node.position);
// console.log("t_pos",t_pos);
let dx=m_pos.x-this.node.position.x
let dy=m_pos.y-this.node.position.y
let dir=v3(dx,dy,0)