Incorrect speed dialing in ram attack through Ai move to

Hi, for my game I need an attack during which the enemy runs in a straight line towards the player (trying to ram him). For this idea, I tried to use Ai move to component, but it didn’t work, because the character is smoothly gaining speed and also smoothly reducing it when approaching an obstacle, but I need the character to gain the right speed immediately and if an obstacle is in front of him, he just flies into it at all speed, not to bring it down. Please tell me how to fix it or if there is any component that would allow the idea to be realized. Thank you)

I solved this problem by adding the walking function as when creating a game character.