World Intersection
The World Intersection section of the C# Component Samples demo contains a set of samples demonstrating how intersection is found between various types of nodes: C# Component Samples演示的World Intersection部分包含一组示例,这些示例演示如何在各种类型的节点之间找到 intersection :
- Bound_Box_Intersection — finding intersection between the Bound Box and geometryBound_Box_Intersection -- 找到 Bound Box 和几何之间的交集
- Bound_Frustum_Intersection — finding intersection between the Bound Frustum and geometryBound_Frustum_Intersection -- 找到 Bound Frustum 和几何之间的交集
- Bound_Sphere_Intersection — finding intersection between the Bound Sphere and geometryBound_Sphere_Intersection -- 找到 Bound Sphere 和几何之间的交集
- Ray_Intersection — detecting intersection of a ray with geometryRay_Intersection -- 探测射线与几何的交点
- Mouse_Ray_Intersection — detecting intersection between the ray cast from the camera and geometry in the point of the mouse cursorMouse_Ray_Intersection -- 检测从相机投射的射线和鼠标光标所在点的几何图形之间的交集
访问演示项目源代码#
您可以学习和修改此演示的源代码来创建自己的项目。 要访问源代码,请执行以下操作:
- 在Demos部分中找到C# Component Samples演示并点击Install(安装)(如果您尚未安装)。
- 安装成功后,demo会出现在Installed部分,您可以点击Copy as Project基于此创建项目 演示。
- 在打开的 Create New Project 窗口中,在相应字段中输入新项目的名称,然后单击Create New Project.
- 现在您可以点击Open Code IDE查看和修改默认IDE中的源代码,或者点击Open Editor打开项目 在 UnigineEditor中。
最新更新:
2023-12-19
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)