Spinning Player. Again

It looks like after replacing the PlayerMovement the Player Distance variable was removed as well. Now my player spins after he reaches his destination. Why would i get a different result than the instructor? Please let me know how I can get the player to stop after reaching his destination and not spin around like an idiot. My game idea is not supposed to be funny.

Same issue. Player spins and dances his way to any place I click, and so do enemies.

it seems that that ShortDestination get a Y noise. just make sure that both Y’s are the same as the player transform

private Vector3 ShortDestination(Vector3 endPoint, float stopRadius)
{
Vector3 newPostion = (endPoint - transform.position).normalized * stopRadius;
newPostion.y = transform.position.y;
endPoint.y = transform.position.y;
return endPoint - newPostion;
}

Privacy & Terms