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))
else:
    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.

in Engine by (19 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 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.