0 votes

Title says it all. Sometimes move and slide with snap works perfectly, while other times it doesn't work when going down slopes and I bounce down them. For context, this is my movement code:

if snap:
    total_velocity = move_and_slide_with_snap(velocity, snap_vector, Vector2.UP, true, 4, deg2rad(90.0))
    total_velocity = move_and_slide(velocity, Vector2.UP, true, 4, deg2rad(90.0))

Snap is what determines whether I should snap or not, and my snap vector is (0, 32). I also tested this by setting snap to always be true, and I still have inconsistent snapping. I have no idea how I should approach this, so any help would be appreciated.

asked Jun 11 in Engine by gazer500 (14 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.