rotation of the object

I do the object rotation by a certain degree with the help of this code

    detail1.localRotation = Quaternion.RotateTowards(detail1.localRotation, Quaternion.Euler(new Vector3(-30, 0, 0)), 10f * Time.deltaTime);

How can I now move an object with the help of physics to look like this code, I can not find the right one, have any ideas what to look for?

There is Rigidbody.MoveRotation,

this works poorly with configurable joint