RayCaster QML Type

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

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

属性

详细说明

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

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

另请参阅 AbstractRayCaster,ScreenRayCaster, 和NoPicking

属性文档

direction : vector3D

三维射线的方向。这应该是一个单位向量。


length : real

保存三维射线的长度。


origin : vector3d

保存三维射线在本地坐标中的原点。


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