I am attempting to make an RigidBody that speeds up to a point and is then clamped at that point, after reading I can see that clamped has been depreciated, but is now used with limit length, but when running this code:
My only thought is that setting a constant force and limiting the velocity are entirely different things within the physics engine. That force will be constantly accelerating your body while you limit the velocity directly. (I.e. you are working against yourself)
My suggestion would be to try a physics approach rather than touching the velocity directly. Or move away from the constant force function. Or set constant force to zero of max speed is reached.
Only apply a central force if below speed, and limit velocity when above speed. Avoiding the use of constant force.
I would suggest limiting the speed before applying forces. Instead of applying forces and then limiting velocity.
Use apply_cental_impulse, this modifies the velocity directly (the function internally multiplies the force with the the inverse mass.)
Modify damping while moving, to oppose directional force, limiting speed.
Use a PID feedback loop monitoring velocity and modulating acceleration force.
I bet @zdrmlpzdrmlp example is going to slow to notice the issue.