New to the forums? Click here to read the "How To" Guide.

Developer? Click here to go to the Developer Forums.

How to get samsung gear vr controller rotation & position in unity

I am trying to get Samsung Gear VR(Oculus) rotation & position so when I turn the samsung controller left or right(like a magic wand) should give me rotation(Quaternion) & position(Vector3) readings?

How can I do that? I'm using Mobile version of Oculus Gear VR not the PC one. Also, GetLocalControllerRotation() returns void and doesn't return me a Quaternion

Does the controller come with a Gyroscope with the help of which I can the rotation or position readings?

OVRInput.Controller controller;
void Update () {        OVRInput.Update();
        cube.transform.rotation = OVRInput.GetLocalControllerRotation(controller);


Sign In or Register to comment.