Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
Cloth.thickness 厚度
# [Cloth](Cloth.html).thickness 厚度 var *thickness* : float *Description* 描述 The thickness of the cloth surface. 布料表面的厚度 This is the distance kept between any cloth vertex and and other collider (or other cloth vertex if self-collision is enabled). Any object closer then this distance will collide with the cloth. If this value is too low, you may see the edges of objects intersecting the cloth surface. If this value is too high, you may see noticable distance between the cloth surface and colliding objects or stiffness in cloth motion if self-collision is enabled. Must be larger then zero. 这是用来控制布料物体和碰撞物体(或者是布料物体,如果开启自身碰撞的话)之间距离的参数。任何一个物体与布料物体的距离接近这个值,那么则会产生碰撞。如果这个值过低,物体边缘会与布料表面交叉;如果该值太高,会明显看到布料与碰撞物体自己的缝隙,或者布料物体在开启自身碰撞时,运动不自然。这个值必须在 0~1 之间。 * [C#](#) * [JavaScript](#) ``` using UnityEngine; using System.Collections; public class example : MonoBehaviour { public void Awake() { transform.GetComponent<Cloth>().thickness = 0.2F; } } ``` ``` transform.GetComponent(Cloth).thickness = 0.2; ```
da
2022年5月17日 17:45
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码