I have an object that is tilted back 15 degrees.
I want to be able to rotate it X degrees around the tilted Y-axis with a LERP, like so:
transform.localRotation = Quaternion.Lerp(transform.localRotation, TARGET_ROTATION, Time.fixedDeltaTime * 0.75f);
This works for an object is not tilted but, with my tilted object, it obviously, doesn’t.
My problem is getting the proper TARGET_ROTATION quaternion.
I have beat my head against the wall on this for hours.
I would appreciate any help.
– Paul