Hi, I try to move around the stage without buttons and teleport. Can I make a move by tilting my head? That is, when I cant head forward, the motion begins. Can anyone help me with the code? I’m more engaged in 3D graphics and just starting to learn Java script
Here is example for Unity [Tutorial] Movement In Mobile VR: Look Walk - YouTube
From a code point of view, you can get the forward vector of the camera and check if the Y component of the vector is less than 0.3 or something similar based on how far you want the user to look down to move forward.
From a design point of view, this type of control system is discouraged because of motion sickness. Not only is the user moving the camera without physically moving, they are also looking down which compounds the issue.