move_and_slide_with_snap in Godot 4

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Dontavius

How to use move_and_slide_with_snap in Godot 4 or another way to do it ?

:bust_in_silhouette: Reply From: Ninfur

Use move_and_slide() (no arguments) and adjust the floor_snap_length variable.

What should the floor_snap_length variable be set to for the best results?

Entity2020 studios | 2023-06-21 15:23