Skip to content

Conversation

kablouser
Copy link

#499

Solution: If OnControllerColliderHit occurs multiple times per frame (i.e. the CharacterController has multiple hits) then pick the hit with the highest normal.y value (i.e. pick the hits near the bottom of the capsule).

Explanation: Inside IsSlidingCondition.Statement(), the checks for step height and slope limit assumes there is only 1 hit per frame. However, if the player is standing on a flat surface and is touching a vertical wall. And, if the vertical wall's hit is last to be messaged. Then, the player could either slide directly upwards (which would unstuck the player) or downwards (which would cause the issue).

Verify: Reproduce the steps described in the issue.

@CLAassistant
Copy link

CLAassistant commented Sep 25, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants