RayCaster QML Type
用于在3D世界坐标系中执行射线投射测试。更多...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QRayCaster |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
详细说明
3D射线由其起点、方向和长度定义。它将受到其所属实体所施加的变换的影响。
只要该组件处于启用状态,每帧都会执行射线投射测试。hit 属性将更新为相交点的列表。
另请参阅 AbstractRayCaster 、ScreenRayCaster 以及NoPicking 。
属性文档
direction : vector3D
保存 3D 光线的方向。该值应为单位向量。
length : real
存储第3条射线的长度。
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.