开启辅助访问
 找回密码
 注册帐号

扫一扫,访问微社区

cloth.bendingstiffness 抗弯硬度

2015-1-4 13:17| 发布者: 杨炎| 查看: 1078| 评论: 0|原作者: 蛮牛|来自:

摘要 : 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;

0 0 0 0 0

相关阅读

最新评论

关闭

站长推荐 上一条 /1 下一条

返回顶部