Brackeys / 2D-Character-Controller

Free 2D Character Controller for Unity.
https://youtu.be/dwcT-Dch0bA
1.16k stars 1.62k forks source link

Fix unintentional crouch bug #51

Open France30 opened 1 year ago

France30 commented 1 year ago

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.