Why is my player getting stuck when jumping into awalls?
I'm asking this question again because my last one didn't get any response. I've written the following piece of code apply movement to my player:
Vector3 movement = Quaternion.Euler(0, movementRotation, 0) * new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical")).normalized * movementSpeed;
rb.velocity = new Vector3(movement.x, rb.velocity.y, movement.z);
But for some reason, when I jump/fall into a wall while moving into it, my players gets stuck. Changing the friction of the physics material only makes it worse; it launches my player up into the air.
Comment