A tracked spatial node that tracks the position and orientation of an input controller. 更多...
| import 语句: |
import QtQuick3D.Xr
|
| Since: | Qt 6.8 |
| 继承: | |
| 状态: | 技术预览 |
The XrController is a tracked spatial node that tracks the position and orientation of an input controller.
Since this is a tracked node, its spatial properties should be considered read-only.
另请参阅 XrInputAction .
|
controller : enumeration |
Specifies the controller to track.
It can be one of:
| 常量 | 值 |
|---|---|
XrController.ControllerNone
|
|
XrController.ControllerLeft
|
|
XrController.ControllerRight
|
|
isActive
:
bool
|
Indicates whether the controller is providing input.
This property is true if the corresponding physical controller is present and tracking.
When using hand tracking, this property holds the positions of all the bones in the hand.
另请参阅 jointRotations and XrHandModel .
|
jointRotations
:
list
<
quaternion
>
|
When using hand tracking, this property holds the orientation of all the bones in the hand.
另请参阅 jointPositions and XrHandModel .
|
pokePosition
:
vector3d
|
This property holds the position to be used for touch interactions. Typically, it will be the tip of the index finger when tracking a hand.
另请参阅 XrView::processTouch and XrView::setTouchpoint .
|
poseSpace
:
enumeration
|
Specifies the pose of the controller to track, that is, the orientation and position relative to the physical controller.
It can be one of:
| 常量 | 描述 |
|---|---|
XrController.AimPose
|
Used when aiming at something, such as with XrVirtualMouse . |
XrController.GripPose
|
Used when grabbing something, such as when holding an object in the hand. |