- Home /
Character controller sticking to and able to jump up walls. (I know, been asked a few times, I've tried all suggestions)
I've looked everywhere, ive tried adjusting all settings from what i've seen from answers ive found. I just cant understand why my character is standing on a 20 degree slope. I use a constant downward force for gravity, Ive adjusted all settings for skin width, radius, etc. I've added a material to the rock wall for no friction. the only thing i havent tired is a raycast beneath me to detect slopes, but i feel that is over kill. is this just a glitch in character controller? here are my settings and an example. any help would be awesome.
Answer by Link0n3 · Sep 14, 2021 at 12:34 PM
You should be able to prevent that by playing around with the slope limit and the skin width. Try decreasing the slope limit (which is the maximum slope the controller can climb) and increase skin width.
Answer by logicandchaos · Sep 14, 2021 at 02:39 PM
It's most likely that you are using one collider and when it hits the walls, which are actually floors it becomes grounded and can jump again, to fix this make your character have a separate collider for feet that do not extend beyond your character's collider, that is so it will not touch the walls if you are standing next to one. Or you can do ground check with raycasts. You could also try tagging your walls as WALL and making sure ground check ignores WALL. Then again I never used the character controller before.. :P
Your answer
Follow this Question
Related Questions
How to make the 3rd person controller an enemy to my fps? 1 Answer
How to make player move according to camera's rotation 0 Answers
loop an animation if the button witch activates it is still pressed 0 Answers
How to relate animations to characters that are downloaded from different websites? 1 Answer