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

    扫一扫,访问微社区

    cloth.damping 阻尼

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

    摘要: cloth.damping 阻尼vardamping: floatdescription描述damp cloth motion.布料运动时的阻尼set this to damp the motions of a cloth instance. must be between zero and one. setting this to zero will disable cl ...

    cloth.damping 阻尼

    vardamping: float

    description描述

    damp cloth motion.

    布料运动时的阻尼

    set this to damp the motions of a cloth instance. must be between zero and one. setting this to zero will disable cloth damping.

    设置布料物体运动时的阻尼。必须在0~1之间,设置为0时,关闭布料的阻尼属性

    c#

    javascript

    using unityengine;

    using system.collections;

    public class example :monobehaviour{

    public void awake() {

    transform.getcomponent().damping = 1;

    }

    }

    // set the damping to 1 regardless if the cloth

    //设置布料的damping为1

    // is a skinned cloth or interactive.

    //可以是skinned cloth或者interactive .

    transform.getcomponent(cloth).damping = 1;

    相关阅读

    文章点评
    相关文章