I have a cube...
I apply addforce to the cube:
AddRelativeforce(0,0,10)
how I can slow down the cube little by little?
I have a cube...
I apply addforce to the cube:
AddRelativeforce(0,0,10)
how I can slow down the cube little by little?
As Joshua said the amount of drag will slow down the cube over time. You could also apply forces in the opposite direction of the rigidbody.
Sorry for this somewhat pseudo code as I cannot test it out at the moment.
currentVelocity = rigidbody.velocity;
oppositeForce = -currentVelocity;
rigidbody.AddRelativeForce(oppositeForce.x,oppositeForce.y,oppositeForce.z);
Increase the drag over time? Decrease the velocity of time?