In C# how would you make a rigidbody automatically right itself if rotated smoothly? I think you use Rigidbody.MoveRotation but I’m not exactly sure on how to use it the way I want to. Any help?
Try this
Quaternion desiredRotation;
float speed; //in degrees
Rigidbody rigidbody;
void Update( ) {
rigidbody.MoveRotation( Quaternion.RotateTowards( rigidbody.rotation, desiredRotation, speed * Time.deltaTime );
}