wondering if anyone can help me. My enemy dashes towards the player, and I want the enemy to face the player when I do so.
I’m doing that now by doing transform.right = (player.transform.position - transform.position).normalized;
when the enemy is facing right, it works fine, but if the enemy is facing left (I have a flip rotation that rotates him 180f on the Y axis to look left) he ends up going upside down, like this:
anyone know how to avoid this?
Rotations drive me nuts lol.