This is a test that I made just click and adjust the sliders
Notes & Credits
this uses vectors and checks to test if your velocity is greater than the top speed and if so it will set it's speed to the top speed but not altering the direction dramatically