I'm writing a game and I'm trying to calculate how to retain a constant velocity no matter what the friction is. For example if the player has a velocity of 25, a mass of 40, friction is 0.1 (friction is constant) and acceleration can be calculated through: velocity / (mass + 5). Then I want that player to still have a velocity of 25. So what I'm after is some sort of formula using the acceleration in order to cancel out the friction, no matter what the friction is. Thank you for your time!
If you say acceleration=velocity/(mass+5) there is no consideration of friction there, so it will have no impact. If you want the velocity to be constant you need the acceleration to be zero unless you are using the terms in a nonstandard way. It won't be friction that changes the velocity, it will be your acceleration equation.