Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

How to implement walking in Gear VR?

$
0
0
I'm working on a Gear VR project and want to implement walking. What I need is, when the person wearing the device walks , it should have same effect in the virtual world.

For this i used Input.acceleration and input.gyro.useracceleration.

In the UpdateMovement method of OVRPlayerController.cs,

Code (csharp):
  1. bool gyro = false;
  2.  
  3.         if (acceleration > 0)
  4.             gyro = true;
  5.         else
  6.             gyro = false;
However, with...

How to implement walking in Gear VR?

Viewing all articles
Browse latest Browse all 12131

Trending Articles