在本页

RayCaster QML Type

用于在三维世界坐标下执行光线投射测试。更多

Import Statement: import Qt3D.Render 2.11
In C++: QRayCaster
Status: Deprecated

属性

详细说明

3d 射线由其原点、方向和长度定义。它将受到应用于其所属实体的变换的影响。

只要组件处于启用状态,每帧都将执行光线投射测试。命中属性将根据交点列表进行更新。

另请参阅 AbstractRayCaster,ScreenRayCaster, 和NoPicking

属性文档

direction : vector3D

保存 3D 射线的方向。应该是单位矢量。

length : real

保存 3D 射线的长度。

origin : vector3d

以本地坐标表示 3D 射线的原点。

© 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.