Skip to content

Fix unintentional crouch bug#51

Open
France30 wants to merge 1 commit intoBrackeys:masterfrom
France30:master
Open

Fix unintentional crouch bug#51
France30 wants to merge 1 commit intoBrackeys:masterfrom
France30:master

Conversation

@France30
Copy link
Copy Markdown

@France30 France30 commented Jun 28, 2023

2D Character Controller unintentionally crouches when a character hits the ceiling. It's caused by checking for a ceiling while the character is standing (!crouch), causing it to crouch everytime the ceiling is hit.

Simple fix was to check if the character previously crouched (m_wasCrouching) instead. This way it only checks for a ceiling if it was already crouching.

2D Character Controller unintentionally crouches when a ceiling is detected. This is because we are checking for a ceiling when "!couch".

Simple fix was to check if the character was previously crouching.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant