XrHandModel QML Type

Represents a 3D model for a hand. 更多...

import 語句: import QtQuick3D.Xr
Since: Qt 6.8
繼承:

Model

狀態: 技術預覽

特性

詳細描述

Contains an animated 3D model that tracks the user's hands.

XrHandModel is only visible when hand tracking is active.

注意: XrHandModel depends on hand-tracking data from the underlying system and is, therefore, not available on all platforms.

平颱注意事項

Apple Vision Pro

The Apple Vision Pro will overlay video of the user's hands directly, and the XrHandModel will not have any content.

Meta devices

This required the following feature and permission lines to be added in the AndroidManifest.qml file of your project.

<uses-permission android:name="com.oculus.permission.HAND_TRACKING" />
<uses-feature android:name="oculus.software.handtracking" android:required="false" />
					

使用 true 而不是 falseuses-feature tag if your app's interaction is implemented only for hands.

特性文檔編製

hand : enumeration [default: XrHandModel.Unknown]

Specifies which hand the model is showing

常量 描述
XrHandModel.LeftHand The left hand.
XrHandModel.RightHand The right hand.
XrHandModel.Unknown No hand is shown.

The value of this property is compatible with XrController.controller .

警告: This property must be set when the XrHandModel is constructed. Changing hands later is not currently supported.