I'm trying to do a dash system but the direction is a problem, as a jump the previous movement is added to the calculation, making the dash longer, I manage to solve it downward wise, by setting its gravity, fall max speed, max speed, to zero(it has a platform behavior). but the same treatment won't work upward, when I jump and set everything to zero the momentum of the jump still endures, how do I set my players momentum to zero