找回密码
 注册帐号

扫一扫,访问微社区

cloth.usegravity 使用重力

2015-1-4 14:57| 发布者: 杨炎| 查看: 2041| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: cloth.usegravity 使用重力varusegravity: booldescription描述should gravity affect the cloth simulation?是否重力影响布料模拟?c#javascriptusing unityengine;using system.collections;public class example ...

cloth.usegravity 使用重力

varusegravity: bool

description描述

should gravity affect the cloth simulation?

是否重力影响布料模拟?

c#

javascript

using unityengine;

using system.collections;

public class example : monobehaviour {

public void awake() {

transform.getcomponent().usegravity = false;

}

}

// dont use gravity on this cloth regardless if is interactive or skinned.

// 使布料不受重力的影响

transform.getcomponent(cloth).usegravity = false;

相关阅读

文章点评
相关文章