Forum Discussion
jokers27
7 years agoHonored Guest
Movement without controller other than the one on the "headset gear vr"
Hi, im on unity 2018.1.1f1 and trying to use the last version of Oculus integration
The problem is my OVRPlayerController only move step by step with the headset button.
Only way to move is by clicking so many time, its unplayable.
Is there a way to move as long as any button is down?
I tryed many version of "while (OVRInput.GetDown(OVRInput.Touch.Any))" but the game freeze as soon i try a loop.
Im new to unity and i lost all the night trying to find a solution in vain. So if anyone have an idea or a solution...
(ps sorry for my bad english, not my first langage)
thank you2 Replies
Replies have been turned off for this discussion
- jokers27Honored Guest
if (OVRInput.GetDown(OVRInput.RawTouch.Any))
@imperativity said:A Gear VR touchpad swipe is not defined until the user removes their finger from the touchpad. Get() and GetDown()
{textboxname.text = "getdown";moveForward = true;dpad_move = true;}
if (OVRInput.GetUp(OVRInput.RawTouch.Any))
{
textboxname_txt.text = "getup";}This and another line modified by: Vector2 primaryAxis = OVRInput.Get(OVRInput.Axis2D.PrimaryTouchpad);work perfectly with my textbox so there is a way to detect a touchpad clickUp and clickDown.But i move only for 1 frame. I need to modify ovrplayercontroller to
move foward when getdown detected and stop when getup is detected.I just dont know where to use this in ovrplayerscontroller. In this prefab code, the movement happen way later in code after many other calculation. - jokers27Honored Guest@imperativity thank you for the answer but...I played a popular game in the horror section "Affected the manor" and this is working perfectly. As soon i touch the gear vr touchpad im moving in the position i look and when i release my finger, i stop.If its not possible, how the hell they did it?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago
- 1 year ago