XrController QML Type
入力コントローラーの位置と向きを追跡する追跡空間ノード。詳細...
| Import Statement: | import QtQuick3D.Xr |
| Since: | Qt 6.8 |
| Inherits: |
プロパティ
- controller : enumeration
- isActive : bool
- jointPositions : list<vector3d>
- jointRotations : list<quaternion>
- pokePosition : vector3d
- poseSpace : enumeration
詳細説明
XrControllerはトラッキングされた空間ノードで、入力コントローラの位置と向きをトラッキングします。
これはトラッキングされたノードなので、その空間プロパティは読み取り専用と考えるべきである。
XrInputActionも参照してください 。
プロパティの説明
controller : enumeration
追跡するコントローラを指定します。
以下のいずれかを指定する:
| 定数 | 説明 |
|---|---|
XrController.LeftController | |
XrController.RightController | |
XrController.UnknownController | |
XrController.LeftHand | (LeftController のエイリアス) |
XrController.RightHand | (RightController のエイリアス) |
isActive : bool [read-only]
コントローラが入力を提供しているかどうかを示す。
このプロパティは、対応する物理コントローラが存在し、トラッキングしている場合に真となる。
jointPositions : list<vector3d> [read-only]
ハンドトラッキングを使用する場合、このプロパティは手のすべてのボーンの位置を保持します。
jointRotations およびXrHandModelも参照してください 。
jointRotations : list<quaternion> [read-only]
ハンドトラッキングを使用する場合、このプロパティは手のすべてのボーンの向きを保持します。
jointPositions およびXrHandModelも参照してください 。
pokePosition : vector3d [read-only]
このプロパティは、タッチインタラクションに使用される位置を保持する。通常、手をトラッキングする場合は人差し指の先端になります。
XrView::processTouch およびXrView::setTouchpointも参照して ください。
poseSpace : enumeration [default: XrController.AimPose]
追跡するコントローラのポーズ、つまり物理コントローラに対する向きと位置を指定します。
以下のいずれかを指定します:
| 定数 | 説明 |
|---|---|
XrController.AimPose | XrVirtualMouse など、何かを狙うときに使用します。 |
XrController.GripPose | オブジェクトを手に持つときなど、何かをつかむときに使用されます。 |
© 2026 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.