Jump to content
  • 0
Sign in to follow this  
F.hao

Confuse Lerp Instruction

Question

image.png.7b50a2d533a1a5dae25a575bd661138c.png

Hi guys, i got some test to understand this code. Then here is the answer:

VectorLerp.thumb.jpg.a1a35269a04d81bd868afce0c93f3940.jpg

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];image.png.af5ad308e861ae8ea5b4c9e539aaffb1.pngand 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

3 replies to this bug / suggestion

Recommended Posts

  • 0

Oh my god, my mistake,

i messed up Vector Lerp and Rotation Lerp🤣

Share this post


Link to post
Share on other sites
  • 0

But still, i think this rotation Lerp is not ok ,at [0,0,0]->[0,90,90]->t. 

I think the Xaxis value should always be 0.

------For the whole afternoon, i think this is not a easy problem for now.😅

Edited by F.hao
  • Upvote 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×