Lerp going crazy when negative
Lerp starts rotating hundreds of times on every axis only when changing from a positive Y value to a negative Y value. I've been stuck on this for more than two hours and quaternion.lerp hasn't been working so I'm using Vector3.Lerp. I really need help here!
this.gameObject.transform.localEulerAngles = Vector3.Slerp(this.transform.eulerAngles, new Vector3(0, desiredRot , 0), rotTimer);
Thanks in advance !
Answer by geometeamcraft · Apr 19, 2020 at 05:04 PM
Okay, so I used mathf.LerpAngle and it works perfectly now. I would still be very happy if I could understand what happened with the problem above, but just to let you know, I fixed my bug!
Thanks for including this. I was able to solve my issue by using mathf.LerpAngle as well.
Your answer
Follow this Question
Related Questions
Rotate on Transform.localeulerAngels smoothly 0 Answers
Smooth rotate between changing rotations (already using Lerp, problems arise) 0 Answers
Rotation (Quaternion.Lerp) not working 0 Answers
Slerp rotation issue when calling a lot 0 Answers
How to control rocket pathing with Quaternion.Slerp 1 Answer