cloth.bendingstiffness 抗弯硬度

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

相关阅读

文章点评
相关文章