找回密码
 注册帐号

扫一扫,访问微社区

cloth.stretchingstiffness 韧度

2015-1-4 14:37| 发布者: 杨炎| 查看: 1962| 评论: 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;

相关阅读

文章点评
相关文章