Cloth.vertices 顶点列表

var vertices : Vector3[]

Description描述

The current vertex positions of the cloth object.

当前布料物体的顶点位置列表。

This gives you read access to the vertex positions of the cloth object, so you can analyse it's current simulation state. Note that the vertex indices may not necessarily correspond to the indices of the source mesh - especially when triangle stripping or UV seams are used in the source mesh (ie, multiple indices for the same vertex), cloth vertices will be different, as the cloth simulation only uses a single index for each vertex.

这使您可以读取访问布料物体的顶点位置,所以你可以分析它目前的模拟状态。请注意,法线索引未必一定对应于源网格索引,尤其当在源网格的三角形带或UV接缝时使用(如,同一顶点多个索引),布料顶点将不同,作为布料模拟只使用每个顶点单个索引。

Page last updated: 2011-4-16