找回密碼
 注冊帳號

掃一掃,訪問微社區

cloth.bendingstiffness 抗彎硬度

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

摘要: cloth.bendingstiffness 抗彎硬度varbendingstiffness: floatdescription描述bending stiffness of the cloth.布料的抗彎硬度(堅挺的程度)must be between zero and one. setting the value to zero disables bend ...

cloth.bendingstiffness 抗彎硬度

varbendingstiffness: float

description描述

bending stiffness of the cloth.

布料的抗彎硬度(堅挺的程度)

must be between zero and one. setting the value to zero disables bending stiffness simulation. in many cases, when you want a cloth to be more stiff, actually reducing the number of vertices will get you better results - and performance.

0 ~ 1 之間。設置為0關閉這個模擬屬性。 在大多數情況下,當你想要一塊比較硬的布料,實際上可以減少布料的頂點數,會得到更好的效果和性能。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

transform.getcomponent().bendingstiffness = 1;

}

}

// set the bending stiffness to 1 regardless if the cloth

//設置布料的bending stiffness為1

// is a skinned cloth or interactive.

//可以是skinned cloth或者interactive cloth.

transform.getcomponent(cloth). bendingstiffness = 1;

相關閱讀

文章點評
相關文章
女校游泳队彩金