- Home /
3D Character controller jittering when jumping against a small wall
Hello, I'm trying to make a fps controller using Unity's character controller. My character can jump 1 unit high, but when jumping against a 1unit block, the vertical movement stops.
If I change the slope limit to 90, the jittering is fixed, but if the character jumps against a wall that is 1.5 units high, the character can get on top, also, i would want to have a smaller slope limit.
I've messed around with the settings but I can't seem to fix it.
Is there a way to either avoid the jittering when using a smaller slope limit or a way to manually set a slope limit through code while setting the character controller slope limit to 90?
Thanks for your help
Answer by Fizi · Jan 13, 2021 at 09:10 PM
Setting the Step Offset to 0 or a very small value while Jumping fixes the problem. According to this thread and my personal experience: https://answers.unity.com/questions/1422941/character-controller-jitters-when-jumping-next-to.html
Yoo, this worked for me.
All you gotta do is set the stepOffset to 0 when the player jumps, and then set it back to it's default value when the player is not jumping.
No more jittering up and down.
Answer by Ikno_ · Sep 10, 2020 at 05:27 PM
Try making a physics material with 0 friction and putting it on the wall.
Your answer
Follow this Question
Related Questions
how to do FirstPersonController, does not move with the keys, else with the mouse? 1 Answer
Make the CharacterController stop adjusting for slopes 0 Answers
How can I guarantee a CharacterController never leaves the ground? 2 Answers
How to stop first person controller from move after movement keys are not pressed anymore? 1 Answer
How do I make my character fall off slopes grater than its slope limit? 0 Answers