XrController QML Type
Un nœud spatial suivi qui suit la position et l'orientation d'un contrôleur d'entrée. Plus d'informations...
| Import Statement: | import QtQuick3D.Xr |
| Since: | Qt 6.8 |
| Inherits: | |
| Status: | Technical Preview |
Propriétés
- controller : enumeration
- isActive : bool
- jointPositions : list<vector3d>
- jointRotations : list<quaternion>
- pokePosition : vector3d
- poseSpace : enumeration
Description détaillée
Le XrController est un nœud spatial suivi qui suit la position et l'orientation d'un contrôleur d'entrée.
Comme il s'agit d'un nœud suivi, ses propriétés spatiales doivent être considérées comme étant en lecture seule.
Voir également XrInputAction.
Propriété Documentation
controller : enumeration |
Spécifie le contrôleur à suivre.
Il peut s'agir de l'un des éléments suivants
| Constante | Description |
|---|---|
XrController.LeftController | |
XrController.RightController | |
XrController.UnknownController | |
XrController.LeftHand | (alias pour LeftController) |
XrController.RightHand | (alias pour RightController) |
isActive : bool |
Indique si le contrôleur fournit des données.
Cette propriété est vraie si le contrôleur physique correspondant est présent et assure le suivi.
Lors de l'utilisation du suivi de la main, cette propriété contient les positions de tous les os de la main.
Voir également jointRotations et XrHandModel.
jointRotations : list<quaternion> |
Lors de l'utilisation du suivi de la main, cette propriété contient l'orientation de tous les os de la main.
Voir également jointPositions et XrHandModel.
pokePosition : vector3d |
Cette propriété indique la position à utiliser pour les interactions tactiles. En règle générale, il s'agit de l'extrémité de l'index lors du suivi d'une main.
Voir également XrView::processTouch et XrView::setTouchpoint.
poseSpace : enumeration |
Spécifie la pose du contrôleur à suivre, c'est-à-dire l'orientation et la position par rapport au contrôleur physique.
Elle peut être l'une des suivantes
| Constante | Description |
|---|---|
XrController.AimPose | Utilisée pour viser quelque chose, comme avec XrVirtualMouse. |
XrController.GripPose | Utilisée pour saisir quelque chose, par exemple lorsqu'on tient un objet dans la main. |
© 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.