This commit is contained in:
2024-08-27 07:48:09 +08:00
parent ede4ffd4ca
commit c598e8964a

View File

@@ -47,6 +47,7 @@ export class SkillCom extends CCComp {
//通过欧拉角 延长 目标点 增量
// this.t_pos.x=Math.cos(this.angle * Math.PI / 180) * this.dis;
// this.t_pos.y=Math.sin(this.angle * Math.PI / 180) * this.dis;
tween(this.node).to( 0.5,{ angle:this.angle,position: this.t_pos},
{
onUpdate: (target: Vec3, ratio: number) => { // onUpdate 接受当前缓动的进度