XrController QML Type
跟踪空间节点,用于跟踪输入控制器的位置和方向。更多
Import Statement: | import QtQuick3D.Xr |
Since: | Qt 6.8 |
Inherits: | |
Status: | Technical Preview |
属性
- controller : enumeration
- isActive : bool
- jointPositions : list<vector3d>
- jointRotations : list<quaternion>
- pokePosition : vector3d
- poseSpace : enumeration
详细说明
XrController 是一个跟踪空间节点,用于跟踪输入控制器的位置和方向。
由于这是一个跟踪节点,其空间属性应视为只读。
另请参阅 XrInputAction 。
属性文档
controller : enumeration |
指定要跟踪的控制器。
它可以是
常量 | 值 |
---|---|
XrController.LeftController | |
XrController.RightController | |
XrController.UnknownController |
isActive : bool |
表示控制器是否正在提供输入。
如果相应的物理控制器存在并正在跟踪,则此属性为 true。
使用手部追踪时,该属性会保留手部所有骨骼的位置。
另请参阅 jointRotations 和XrHandModel 。
jointRotations : list<quaternion> |
使用手部追踪时,该属性会保存手部所有骨骼的方向。
另请参见 jointPositions 和XrHandModel 。
pokePosition : vector3d |
该属性保存用于触摸交互的位置。通常,在跟踪手部时,该位置将是食指指尖。
poseSpace : enumeration |
指定要跟踪的控制器姿态,即相对于物理控制器的方向和位置。
它可以是
常量 | 说明 |
---|---|
XrController.AimPose | 瞄准物体时使用,如XrVirtualMouse 。 |
XrController.GripPose | 抓取物体时使用,例如手持物体时。 |
© 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.