Hey, I am making an ant simulation and I want the ant to rotate towards his next targetPosition. (Only on the Z axis) For this I need to find out the angle between the ants currentPosition and the ants targetPosition:
But this doesn’t work. This only rotates the ant to the upper right or lower right a tiny bit. I have looked through a lot of other forum posts about rotation but I couldn’t get it to work. My understanding of rotation in Unity is complete dogshit so any help would be greatly appreciated :). Thanks in advance!