Unity-Technologies / XR-Interaction-Toolkit-Examples

This repository contains various examples to use with the XR Interaction Toolkit
Other
1.1k stars 359 forks source link

Use XR-Grab-Interactable along with Player Movement #97

Closed Vinayak0706 closed 1 year ago

Vinayak0706 commented 1 year ago

In our current project we have added Player Movement with Joystick for both Right Controller and Left Controller. There are objects for which XRGrabIntractable Script attached so that they are Grabbable when Ray is Pointed and Triggered.

when we use Trigger button and Pick up one of the object it is Grabbed. But when I use the Joystick to move the player Grabbed Object in Hand also moves and Rotates.

Is it possible to disable the movement of the Grabbed Object when we use Joystick?

Unity Version: 2021.3.1f Device: Pico Nio 3 XR Interaction Toolkit Version: 2.2.0

Vinayak0706 commented 1 year ago

If Any one looking for this, Uncheck Anchor Control in XR Ray Interactor Component image