Search Unity

Question How to use Snap Turn and Continuous Move Together?

Discussion in 'XR Interaction Toolkit and Input' started by wakkowakko, Mar 20, 2023.

  1. wakkowakko

    wakkowakko

    Joined:
    Sep 24, 2019
    Posts:
    2
    Is there a way to separate Snap Turn and Continuous Move? For example, I added both Continuous Move Provider and Snap Turn Provider on XR Origin; if I try to turn left, the character will also move left, and same for turning right. I realize you can toggle reference to keep them separate on each hand, but I want to know if there's a way to keep both references on. The DemoScene provided by the XR Interaction Toolkit seems to have both references on but each controller manages to do unique locomotion. (Left hand for continuous move, Right hand for Snap Turn and Teleportation) Please help!
     
  2. unity_andrewm

    unity_andrewm

    Unity Technologies

    Joined:
    Jun 25, 2015
    Posts:
    73
    You should be able to toggle smoothMotionEnabled and smoothTurnEnabled in the ActionBasedControllerManager of each hand.

    If SmoothMotion is off, you're operating in teleportation mode for that hand.