Hi guys,
I got a little problem again. I’m trying to interpolate between two angles,
but unity interpolates entirely wrong even though I gave him the right angles.
(I testet it with print before.)
What am I doing wrong, why doesn’t he simply change the degree a little bit?
cam.transform.rotation = Quaternion.Lerp(new Quaternion(
cam.transform.eulerAngles.x,
cam.transform.eulerAngles.y,
cam.transform.eulerAngles.z,
cam.transform.rotation.w),
new Quaternion(
77f,
cam.transform.eulerAngles.y,
cam.transform.eulerAngles.z,
cam.transform.rotation.w)
, 0.3f);
he kinda messes up the entire rotation. He also changes the z angle for example…something he shouldn’t do oO
Thanks for any help.