Im making a 2D game and don’t want the obkects to rotate in the x and y axis’s
This is my movement code so far
transform.right = player.position - transform.position;
transform.position = Vector3.MoveTowards(transform.position, player.position , speed * Time.deltaTime);