cloth.damping 阻尼

2015-1-4 13:27| 发布者: 杨炎| 查看: 1734| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本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;

相关阅读

文章点评
相关文章