make mesh follow wheel collider unity

Code Example - make mesh follow wheel collider unity

                
                        public WheelCollider wheelCollider;
public Transform wheelModel;

void Update()
{
    Vector3 wheelPosition;
    Quaternion wheelRotation;
    wheelCollider.GetWorldPose(out wheelPosition, out wheelRotation);
    wheelModel.position = wheelPosition;
    wheelModel.rotation = wheelRotation;
}