Hey. There is such a script:
float localHeight = CharHeight; if (_PlayerMode == PlayerMode.Crouch) { localHeight = CharHeight * 0.5F; } float lastHeight = Controller.height; Controller.height = Mathf.Lerp(Controller.height, localHeight, 5 * Time.deltaTime); CharTransform.position = new Vector3(transform.position.x, transform.position.y + (Controller.height - lastHeight) / 2, transform.position.z); //Fix vertical position CharTransform = transform. I think many people had a problem that with this method of squatting, the camera did not move to the end, but half from the height of Character `a. It turns out, you need to do animation for the camera? And when creating an animation to take into account that it will still move a little?

ΠΏΡΠΈ ΡΠ°ΠΊΠΎΠΌ ΠΌΠ΅ΡΠΎΠ΄Π΅ ΡΠ΅Π°Π»ΠΈΠ·Π°ΡΠΈΠΈ ΠΏΡΠΈΡΠ΅Π΄Π°Π½ΠΈΠΉ, ΠΊΠ°ΠΌΠ΅ΡΠ° Π΄Π²ΠΈΠ³Π°Π»Π°ΡΡ Π½Π΅ Π΄ΠΎ ΠΊΠΎΠ½ΡΠ°- which end? Where did you go? - Alexey Shimansky