找回密碼
 注冊帳號

掃一掃,訪問微社區

cloth.vertices 頂點列表

2015-1-4 15:07| 發布者: 楊炎| 查看: 2155| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: cloth.vertices 頂點列表varvertices:vector3description描述the current vertex positions of the cloth object.當前布料物體的頂點位置列表。this gives you read access to the vertex positions of the cloth ob ...

cloth.vertices 頂點列表

varvertices: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接縫時使用(如,同一頂點多個索引),布料頂點將不同,作為布料模擬只使用每個頂點單個索引。

文章點評
极速时时彩开奖最快的网站