Add a guide to use the OpenXR controller Pointer pose
fight4dream opened this issue · comments
- Create a game object named "Right Pointer Pose" under CameraRigs.UnityXRPluginFramework
- Add
Tracked Pose Driver (New Input System)
component
- Press the + button besides 'Position Action' and choose 'Add binding'
- Select 'XR Controller' > 'XR Controller (Right Hand)' > 'Optional Controls' > 'pointerPosition'
- Press the + button besides 'Rotation Action' and choose 'Add binding'
- Select 'XR Controller' > 'XR Controller (Right Hand)' > 'Optional Controls' > 'pointerRotation'
- Drag the 'Right Pointer Pose' to the straight pointer's 'Follow Source' field
- Repeat the same steps for the left pointer pose.
pointerPosition and pointerRotation seem to get deleted if you use the Oculus Integration Unity asset and switch the XR Plugin to Oculus... as if the Oculus OpenXR implementation has completely removed it