202107-17 Unity使用DoTween实现抛物线效果 Unity使用DoTween实现抛物线效果,供大家参考,具体内容如下概要publicpartialclassEMath{publicstaticVector3Parabola(Vector3start,Vector3end,floatheight,floatt){floatFunc(floatx)=>4*(-height*x*x+height*x);varmid=Vector3.Lerp(start,end,t);returnnewVector3(mid.x,Func(t)+Mathf.Lerp(start.y,end.y,t),mid.z);}publicstaticVector... 继续阅读 >