From af9e65b01e3c6e5e2d61f6740199aa71d3629bea Mon Sep 17 00:00:00 2001 From: Davidulik30 <61747978+Davidulik30@users.noreply.github.com> Date: Fri, 24 Dec 2021 04:13:42 +0300 Subject: [PATCH] Possible bugs, cause it always crouching There is a bug in new version of the script for movement. On line 67, I guess they accidentally put !crouch instead of crouch. This bug makes your character be always in the crouch position and that causes few bugs like EXTRALARGE jump while moving. Just delete "!" from if(!crouch){... and done! P.S ty to guys from comments of youtube video for finding this bug. Link on video : https://www.youtube.com/watch?v=dwcT-Dch0bA --- CharacterController2D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CharacterController2D.cs b/CharacterController2D.cs index 925bfe0..914823d 100644 --- a/CharacterController2D.cs +++ b/CharacterController2D.cs @@ -64,7 +64,7 @@ private void FixedUpdate() public void Move(float move, bool crouch, bool jump) { // If crouching, check to see if the character can stand up - if (!crouch) + if (crouch) { // If the character has a ceiling preventing them from standing up, keep them crouching if (Physics2D.OverlapCircle(m_CeilingCheck.position, k_CeilingRadius, m_WhatIsGround))