So, for example, I count [0,0,0]to[0,90,90],and then t=0.5. I think the answer should be [0,45,45]; But like the picture before, the editor give me [19.471,45.000,45.000];and I really can't understand this.
So what's wrong with code, or maybe it's other problems?
Hi guys, i got some test to understand this code. Then here is the answer:
And i think those answer is not right. Base the equation:OT=OA+dt*(OB-OA) ; I learn it from here :https://docs.unity3d.com/ScriptReference/Vector3.Lerp.html
So, for example, I count [0,0,0]to[0,90,90],and then t=0.5. I think the answer should be [0,45,45]; But like the picture before, the editor give me [19.471,45.000,45.000];and I really can't understand this.
So what's wrong with code, or maybe it's other problems?
Share this post
Link to post
Share on other sites