0 votes

So im making a slide mechanic and one thing i found that does the job is linearinterpolate so i made a new Vector3 variable which will house the sliding info when the player slides that variable will use the linearinterpolate to keep the player going in one direction:

Slide_vel = slide_vel.linear_interpolate(slide_smooth,delta*Player.ACCEL)

In which:

Slide_vel = Vector3.ZERO
Var slide_smooth = player.direction * player.Speed
Player.ACCEL = 0 #When sliding

The problem is that when i start sliding and want the player to stop i just can't the player keeps going until it reaches some point

Or maybe this is the wrong way of doing it if so any suggestions will be much appreciated

Godot version 3.5
in Engine by (57 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.