I’ve got a rigidbody I’m moving with a script. If the script is deactivated I want the rigid body to then keep moving but as a rigid body, slowing down due to dampening, colliding with other rigid bodies and changing direction and all that. Any ideas?
Landern got my first thought.
My second was to set the velocity directly. This is generally discouraged, but in your case, it might actually work well.
in short:
if(rb.velocity < desiredVelocity) rb.AddForce(acceleration*direction);
what about constant force
It should, but only if you were originally moving the rigidbody using forces.
if you were using a translate, it wont have any existing forces moving it.