Hand Interaction
Extension introduction
XR_HTC_hand_interaction allows developers to create an application with hand interaction.
Supported Platforms and Devices
Platform | Headset | Supported | Plugin Version | |
PC | PC Streaming | Focus 3/XR Elite/Focus Vision | X | |
Pure PC | Vive Cosmos | V | 2.3.0 and above | |
Vive Pro series | V | 2.3.0 and above | ||
AIO | Focus 3/XR Elite/Focus Vision | V | 2.3.0 and above |
Enable Plugins
- Edit > Plugins > Search for OpenXR and ViveOpenXR, and make sure they are enabled.
- Note that the " SteamVR " and " OculusVR " plugin must be disabled for OpenXR to work.
- Restart the engine for the changes to take effect.
How to use OpenXR Hand Interaction Unreal Feature
- Make sure ViveOpenXR is enabled.
- Select Edit > Project Settings > Plugins > Vive OpenXR > Enable Hand Interaction under Hand Interaction to enable OpenXR Hand Interaction extension.
- Restart the engine to apply new settings after clicking Enable Hand Interaction.
- For the available Hand Interaction functions, please refer to ViveOpenXRHandInteractionFunctionLibrary.h.
-
Use Motion Controller Component and set Motion Source to LeftAimInteraction, LeftGripInteraction or RightAimInteraction, RightGripInteraction to get the tracking pose.
-
Register Hand Interaction key in EnhancedInput to get the key events.
Play the sample map
- Make sure the OpenXR Hand Interaction extension is enabled, the setting is in Edit > Project Settings > Plugins > Vive OpenXR .
- The sample map is under Content > HandInteraction > Map .
- Aim the beam at the cubes far from you then pinch to hold them.
Close to cubes and grab them, you can hold them steady.
- Start playing the HandInteraction map, you can grab the nearby cubes or aim the beam at cubes to hold and move them. The blue cube will float in the air, and the red ones will drop down when you release them.