XrOrigin QML Type
| Import Statement: | import QtQuick3D.Xr |
| Since: | Qt 6.8 |
| Inherits: | |
| Status: | Technology preview |
此类型处于技术预览阶段,可能会有变动。
属性
- camera : XrCamera
详细说明
原点决定了reference space 的中心位置。改变原点的位置会将用户传送到场景中的不同位置。
大多数XR平台允许用户通过身体移动来改变视角,但这不会改变原点的位置。若要追踪头显的位置,请创建一个XrCamera ,并将其赋值给camera 属性。
警告: 更改原点的位置/旋转时,请务必 遵循最佳实践。否则可能会导致身体不适、恶心或失去平衡。在最坏的情况下,这可能会导致受伤甚至死亡。
属性文档
camera : XrCamera [default: null]
用于添加带追踪功能的摄像机节点的属性。
包含一个XrCamera ,这是一个可追踪的空间节点,用于追踪XR环境中头戴式显示器的位置和方向。
注意:此 属性为可选。
另请参阅 XrCamera 。
© 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.