UE5.1_Niagara高级4.5_ Dynamic Distance Fields
4.5 Dynamic Distance Fields【动态距离场】
Locating the closest point to a triangle allows one to find intersections with 3d shapes, etc. For instance, if the nearest distance to a triangle is less than a spheres radius then the sphere and the triangle intersect.
This can and has been used to sweep paths.
【定位到距离三角形最近的点,可以找到和3d形状等的交点。例如,如果到三角形的最近距离小于球半径,那么这个球和三角形相交】
【这可以并且已经被用于扫描路径】
Draw a line from evenly distributed nearby points to the triangles surface
【从均匀分布的附近点画一条到三角形表面的线】
Convert a sprite into a line【将图片转换成线条】
Use a custom vertex shader to convert a sprite to a triangle
【使用自定义顶点着色器将图片转换成三角形】
Find Closest Point on Triangle【找到三角形最近点】模组
用于找到和查询点距离最近的三角形表面的点
Query Position【查询点】
Coordinate Space【坐标空间】
Triangle Vertex 1【三角形顶点1】
Triangle Vertex 2【三角形顶点2】
Triangle Vertex 3【三角形顶点3】
Parameter Writes【参数写入】
Output.FindClosestPointOnTriangle.ClosestPointIsOnTriangleSurface【最近点在三角形表面上】:布尔变量,当最近点在三角形的顶点或三角边上时为False,当最近点在三角形面里时为True
Output.FindClosestPointOnTriangle.ClosestPointToTriangle【到三角形的最近点】:三角形表面距离查询点最近的点
Output.FindClosestPointOnTriangle.DistanceToClosestPointOnTriangle【到三角形表面最近点的距离】:三角形表面到查询点的最近距离