How to limit torque acceleration?

Hi I’m making a game where you control a ball with torque for movement. when I hold down the input key for the movement the ball moves faster and faster infinitely.

Is there a way to limit the acceleration of torque?
also I would like for the ball to stop rolling when the input is not being push,

how I would I use clamp in the case of limiting the acceleration of torque?

You can always limit boundaries of any number value, by using Clamp node.

290568-example.png

Apply it to your value before pluging it in function.

can you shew me how to use the clamp

You can watch this tutorial on the basics of how the Clamp node works.

The ball keeps rolling faster and faster, I wont the ball to accelerate at a max speed and go no faster.