找回密碼
 注冊帳號

掃一掃,訪問微社區

cloth.stretchingstiffness 韌度

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

摘要: cloth.stretchingstiffness 韌度varstretchingstiffness: floatdescription描述stretching stiffness of the cloth.布料的韌性(可拉伸的程度)must be greater than zero and smaller or equal to one. in many cas ...

cloth.stretchingstiffness 韌度

varstretchingstiffness: float

description描述

stretching stiffness of the cloth.

布料的韌性(可拉伸的程度)

must be greater than zero and smaller or equal to one. 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。 在大多數情況下,當你想要一塊比較硬的布料,實際上可以減少布料的頂點數,會得到更好的效果和性能。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

transform.getcomponent().stretchingstiffness = 1;

}

}

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

//設置布料的stretching stiffness為1

// is a skinned cloth or interactive.

//可以是skinned cloth或者interactive .

transform.getcomponent(cloth).stretchingstiffness = 1;

相關閱讀

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