I’m following a tutorial on youtube by unitycookie, he gave the following line of code to look at a target:
gameObject.transform.rotation = Quaternion.Lerp(currentRotation, desiredRotation, Time.deltaTime * turnSpeed);
alas it doesn’t seem to work for me, the object does turn but it doesn’t face it’s target, it’s usually about 90 or so degrees off.
Note: it’s never exactly 90 degrees off so it’s not a consistent error it seems