Question by
Dandi8 · Jan 09 at 11:42 AM ·
physicscharactercharactercontrollercharacter controller
CharacterController getting stuck on slope corners
I have a CharacterController set up with these values:
Slope Limit: 45
Step Offset: 0.3
Skin Width: 0.08
Min Move Distance: 0.001
Center: 0, 1, 0
Radius: 0.5
Height: 2
Everything works great except for when going up a slope and reaching an edge at the top, where the player gets inexplicably stopped, as can be seen in this video:
https://www.youtube.com/watch?v=kTOdvUStEVk
The problem "fixes" itself if I set the slope limit to at least 90
. Unfortunately, that's not really an acceptable value for my game.
An alternative "fix" seems to be increasing the skin width to at least 0.3
(the value of the step offset), but that leads to other issues such as the player floating above ground and, as a side effect, my isGrounded
code not working.
What can I do to get around this problem?
Comment