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)...it 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?
GetLocalControllerRotation
returns void? The docs define its return type as Quaternion, and this Oculus page specifically about GearVR development in Unity specs exactly this method for getting controller rotation:Quaternion rotation = OVRInput.GetLocalControllerRotation( OVRInput.Controller.RTrackedRemote);
\$\endgroup\$