# How do I get the Oculus Rift's position and rotation?

I'm looking for the functions to get the position and rotation data of the rift headset itself in Unity.

I have the Oculus integration SDK installed and want to avoid using any pre-fabs.

you have an OVRCameraRig prefab in the scene then you can get the centerEyeAnchor transform as follows:

public OVRCameraRig cameraRig;