So I am working on a 2 side scroller. I have a 4 legged character the runs left and right and jumps.
I have short walls that the character jumps over. Works good.
Problem comes in when moving forward, if i jump to late to make it over the wall the character bumps into the wall but stays stuck where it hits the wall collider.
If i stop moving forward the character will fall to the floor like it should but I cant figure out how to stop sticking to the wall if i jump into it while moving forward.
This only happens if you allow movement control while in the air. There are much nicer ways to handle this in code. If your using a basic movement controller your probably using OnCollisionStay and that’s just always setting your character to grounded. If you do a raycast down at the feet to make sure the feet or at least one foot is hitting then set Grounded to true or false. This will solve that issue was well.