ExtendRealityLtd / VRTK

An example of how to use the Tilia packages to create great content with VRTK v4.
https://www.vrtk.io/
MIT License
3.69k stars 993 forks source link

Touchpad press/release for teleport only works for Left Controller #2091

Closed jorgeolothar closed 4 years ago

jorgeolothar commented 4 years ago

Environment

Steps to reproduce

Open farm scene. We will setup teleport pointers with Trackpad-Press (instead of Touch) to activate pointer and Trackpad-Release (instead of Press) to select destination.

Left Controller

  1. VRTK Prefabs->ControllerActions->LeftController->Pointers->ActivatePointerControls->ControlTypes->ButtonPress->ActivatePointer
  2. Change BooleanAction Source[0] from [Touch16] to [Press8]
  3. VRTK Prefabs->AvatarPointers->TeleportPointers->LeftCurvedPointer
  4. PointerFacade->SelectionAction -> "SelectOnDeactivate"
  5. Test teleporting on left controller

Right Controller

  1. VRTK Prefabs->ControllerActions->RightController->Pointers->ActivatePointerControls->ControlTypes->ButtonPress->ActivatePointer
  2. Change BooleanAction Source[0] from [Touch17] to [Press9]
  3. VRTK Prefabs->AvatarPointers->TeleportPointers->RightCurvedPointer
  4. PointerFacade->SelectionAction -> "SelectOnDeactivate"
  5. Test teleporting on rightcontroller

Expected behavior

Left Controller

  1. Pointer appears on Left trackpad button down
  2. Teleportation happens on trackpad button up

Right Controller

  1. Pointer appears on Right trackpad button down
  2. Teleportation happens on trackpad button up

Current behavior

Left Controller: As expected

Right Controller

  1. Pointer appears on Right trackpad button down
  2. Teleportation DOES NOT happens on trackpad button up

Other thoughts

  1. I removed the Simulated CameraRig buttons on the right controller to better reflect the left configuration. No change.
  2. On the right controller, if the two buttons are different, it seems to work. For example, if you assign Trigger for Select in VRTK Prefabs->ControllerActions->RightController->Pointers->SelectWithPointerControls->ControlTypes->ButtonPress->SelectWithPointer, it will display the pointer on Trackpad press, and it will teleport when you start to release the Trigger.
jorgeolothar commented 4 years ago

Seems like one to the latest updates solved this issue.