Rotating the body in which the Main camera is attached to?

i am using the google VR package.
the situation i have here is that

when i click ‘alt’ on the keyboard i am able to move the camera around, i am trying to make the body match the rotation of the camera, so as the whole body moves with the rotation.

i have been trying to figure it out , but i cannot

this.transform.localRotation = Camera.transform.localRotation;

i want the body to rotate with the rotation of the head that’s all , i tried many online solutions online but none were lucky

        Ray ray = new Ray(Camera.main.transform.position, (Camera.main.transform.forward));

        this.transform.rotation = Quaternion.Slerp(this.transform.rotation, Quaternion.LookRotation(ray.direction), Time.deltaTime);

i managed to get it working with that, but it’s not perfect.