skill
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user