I’m making a 2d game and I have the orientation set as YAxisForward on the AIPath script. The AIPath script is being used to control the movement of the character but I have a separate script to ensure the character is facing it’s target
transform.up = (enemyTargetFinderControllerScript.closestTarget.position - transform.position) * -1;
However, sometimes the AI character starts rotating around it’s X and Y axis too. Any idea what could be causing this?