Shaking Companion

My companion seems to shake when i hit him or he hits me. Do you guys know any other to this?
(ps my code)

public class bobcore : MonoBehaviour

{
    public Transform target;
    public NavMeshAgent nav;

    // Start is called before the first frame update
    void Start()
    {
        nav = GetComponent<NavMeshAgent>();
    }

    // Update is called once per frame
    void Update()
    {
        nav.SetDestination(target.position);
    }
}