将对象附加到头戴设备
Sometimes, it might be necessary to attach some object to the HMD to follow it. It can be a menu (like the head_menu node in the sample), glasses with colored lenses, or a smoking cigar. To attach a node to the HMD position, assign the AttachToHead property to this node and specify the required settings: distance, forward direction axis (to properly orient the node facing the viewer), and flags indicating whether the node position is fixed and updated when the component is enabled.有时我们可能需要将某个对象附加到 HMD(头戴显示器)上以使其始终跟随头部移动。例如,可以是一个菜单(如示例中的 head_menu 节点)、带有彩色镜片的眼镜,或者是一根燃着的雪茄。要将节点附加到 HMD 的位置,请将 AttachToHead property 分配给该节点,并设置所需的参数:距离、朝前方向的轴(用于正确朝向用户)以及标志用于指示节点的位置是否固定,以及组件启用时是否更新位置。
本页面上的信息适用于 UNIGINE 2.20 SDK.
最新更新:
2025-06-20
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)