|
I have a cube... I apply addforce to the cube: AddRelativeforce(0,0,10) how I can slow down the cube little by little?
(comments are locked)
|
|
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. You probably want to multiply that opposite force by a small factor to slow down the rate of deceleration.
May 18 '11 at 01:53 AM
DaveA
Yes perhaps a Vector3.Lerp from 0 to -currentVelocity would do the trick.
May 18 '11 at 10:12 PM
save
(comments are locked)
|
|
Increase the drag over time? Decrease the velocity of time?
(comments are locked)
|
