cloth.selfcollision 自身碰撞

2015-1-4 14:27| 发布者: 杨炎| 查看: 1623| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: cloth.selfcollision 自身碰撞varselfcollision: booldescription描述will the cloth collide with itself?是否产生自身碰撞。enable this only where needed, as it has a big impact on cloth performance.在需要 ...

cloth.selfcollision 自身碰撞

varselfcollision: bool

description描述

will the cloth collide with itself?

是否产生自身碰撞。

enable this only where needed, as it has a big impact on cloth performance.

在需要时才开启它,这将很大程度上影响布料的性能。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

getcomponent().selfcollision = false;

}

}

getcomponent(interactivecloth).selfcollision = false;

相关阅读

文章点评
相关文章