+1 vote

I'm writing a player movement script, and I'm having a bit of an issue with slope interactions.

If I currently continually move into a slanted wall, say 60 degrees, I will slide upwards for one frame, before moving back down to the floor. This repeats very quickly, which makes it look like jittering.

I was wondering if there were any simple solutions to fix this jittering? Or more specifically, stop sliding up with slope in the first place in moveandslidewithsnap() (interact like a 90 degree wall), but still be able to slide down if player lands on the wall from above.

in Engine by (388 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.