找回密碼
 注冊帳號

掃一掃,訪問微社區

cloth.damping 阻尼

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

摘要: cloth.damping 阻尼vardamping: floatdescription描述damp cloth motion.布料運動時的阻尼set this to damp the motions of a cloth instance. must be between zero and one. setting this to zero will disable cl ...

cloth.damping 阻尼

vardamping: float

description描述

damp cloth motion.

布料運動時的阻尼

set this to damp the motions of a cloth instance. must be between zero and one. setting this to zero will disable cloth damping.

設置布料物體運動時的阻尼。必須在0~1之間,設置為0時,關閉布料的阻尼屬性

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

transform.getcomponent().damping = 1;

}

}

// set the damping to 1 regardless if the cloth

//設置布料的damping為1

// is a skinned cloth or interactive.

//可以是skinned cloth或者interactive .

transform.getcomponent(cloth).damping = 1;

相關閱讀

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