dd
This commit is contained in:
@@ -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 接受当前缓动的进度
|
||||
|
||||
Reference in New Issue
Block a user