Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed player sliding stuck bug #501

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

None yet

1 participant