//平滑阻尼
.SmoothDamp(girsTrans.position,targetTrans.position,ref currentVelocity,1) 平滑时间为1ref一定要带,平滑速度
//平滑阻尼
.SmoothDamp(girsTrans.position,targetTrans.position,ref currentVelocity,1) 平滑时间为1ref一定要带,平滑速度
Vector2.Lerp 速度 先快后慢
vector2.moveTowards匀速
平滑阻尼
xx.positon=vector2.SmoothDamp(xx.position,xxx.position,ref currentvelocity,1)
1是代表平滑时间
vector2 currentvelocity=new vector2(1,0)
一般使用 vector.moveTowards