0 votes

Many people are having this problem and so am i so i created a fps control following the tutorial in : https://docs.godotengine.org/en/stable/tutorials/3d/fps_tutorial/part_one.html
One thing they forgot to add is preventing your character from sliding when on a slope
Also when i stop in the middle of the slope my character slightly jumps

Godot version Latest (3.4)
in Engine by (57 points)

1 Answer

0 votes

A couple of things to consider; move_and_slide is working correctly but should be told to stop_on_slope = true. This tutorial, however, uses a MAX_SLOPE_ANGLE to tell the physics what should still be considered a slope. You can change this value for your game; perhaps sliding is a good thing?

For the later, move_and_slide_with_snap will give you the desired result but again, requires tweaking for your specific game:

https://docs.godotengine.org/en/stable/classes/class_kinematicbody.html#class-kinematicbody-method-move-and-slide-with-snap

by (826 points)
edited by
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 Frequently asked questions and 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 [email protected] with your username.