Skip to content

Conversation

kablouser
Copy link

@kablouser kablouser commented Sep 26, 2021

#416
#499

I think the issue lies within CharacterController. When calling Move() with a downwards direction it can get stuck if it's close enough to a very vertical wall (but not exactly 90 degrees).

issue.mp4

My solution was to add a small push away from the wall when they are too steep.

solved.mp4

Verification: replicate steps described in the issues.

Note
This is related to my other PR #500
This PR solves the issue #499 in a different way. But solves the older issue #416 which my other PR doesn't do.

Replaced OrthoNormalize with a double cross product which is slightly more performant. And added a small push away from walls when they are too steep.
@kablouser kablouser changed the title Kablouser/player sliding bugfix Fixed player sliding stuck bug Sep 26, 2021
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.

1 participant