• cloth.selfcollision 自身碰撞 - 脚本手册 - -【游戏蛮牛】-游戏出海,ar增强现实,虚拟现实,unity3d,unity3d教程下载首选u3d,unity3d官网 - Powered by Discuz!
     找回密码
     注册帐号

    扫一扫,访问微社区

    cloth.selfcollision 自身碰撞

    2015-1-4 14:27| 发布者: 杨炎| 查看: 1780| 评论: 0|原作者: 蛮牛|来自: unity3d脚本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;

    相关阅读

    文章点评
    相关文章