XrHandModel QML Type

代表一只手的 3D 模型。更多

Import Statement: import QtQuick3D.Xr
Since: Qt 6.8
Inherits:

Model

Status: Technical Preview

属性

  • hand : enumeration

详细说明

包含一个可跟踪用户双手的三维动画模型。

XrHandModel 仅在手跟踪激活时可见。

注意: XrHandModel 依赖于底层系统的手部跟踪数据,因此并非在所有平台上都可用。

平台说明

Apple Vision Pro

Apple Vision Pro 会直接叠加用户手部的视频,XrHandModel 不会有任何内容。

元设备

这需要在项目的 AndroidManifest.qml 文件中添加以下功能和权限行。

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

如果您的应用程序只实现了与手的交互,请在uses-feature 标签中使用true 而不是false

属性文档

hand : enumeration [default: XrHandModel.Unknown]

指定模型显示的是哪只手

常量说明
XrHandModel.LeftHand左手
XrHandModel.RightHand右手。
XrHandModel.Unknown不显示手。

此属性的值与XrController.controller 兼容。

警告: 该属性必须在构建XrHandModel 时设置。目前不支持稍后换手。


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.