Slow down an object that has RB.AddRelativeForce to start movement.

I use this to start the movement on key press.

 RB.AddRelativeForce(Vector3.forward * Vspeed,ForceMode.Impulse);

So it starts moving at the given speed in the right direction. My question is how to make it slow down
untill it stops completely as for now the object stays in movement.

Thank you for your time and explenation :slight_smile:

Without more information on exactly how you want it to stop, you can increase the drag on the rigidbody from the default of 0 and it’ll slow down over time. A higher value will come to a stop more quickly.

  • Increase the linear drag (as above)

  • Explicitly scale down the Linear Velocity (speed)

  • Add a force in the opposite direction to the current movement (careful not to overshoot the slowdown and speed-up)

That was it i needed a way to make the ball slowly stop rolling adding the drag does the trick. Thank you.