Hey, I am having issues with pointing my character towards the mouse using the slerp function.
Been trying every tutorial and its brought me to this, here you go:
The top of my player that is supposed to rotate does so along the wrong axes and ends up invisible in a top down view.
void Update()
{
transform.position = Bottom.transform.position;
mousePos = Camera.main.WorldToScreenPoint(Input.mousePosition);
targetAngle = Quaternion.LookRotation(mousePos - transform.position);
transform.rotation = Quaternion.Slerp(transform.rotation, targetAngle, turnSpeed);
}