Character get knocked up when runs into steep slopes #37
-
Hi! I have character controller (settings are similar to standard) and non-regular terrain-like (valley) static geometry. When character runs and hits steep slope character get knocked up pretty high. I've suspected Vertical- and HorizontalMotionConstraints and CorrectContacts(), but experiments show that they does not affect such behavior. Please, see video: https://youtu.be/b5spqg16MCk Could you suggest, how to eliminate or reduce such behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The You can try out different values in the |
Beta Was this translation helpful? Give feedback.
The
CharacterController.VerticalMotionConstraint.MaximumGlueForce
tries to keep the character glued to the last support, which should stop this kind of thing from happening so long as the force is strong enough. You may need to increase it if the character's horizontal motion is overpowering it.You can try out different values in the
CharacterPlaygroundDemo
and see their impact on the tilted planks (toward the upper left upon spawning). Reducing the maximum glue force lets the character slide up the wall like in the video.