Skip to content

Fix unintentional crouch bug #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

France30
Copy link

@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