Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
ClothSkinningCoefficient.collisionSphereDistance 碰撞球体距离
# [ClothSkinningCoefficient](ClothSkinningCoefficient.html).collisionSphereDistance 碰撞球体距离 var *collisionSphereDistance* : float *Description* 描述 Definition of a sphere a vertex is not allowed to enter. This allows collision against the animated cloth. 定义一个球体的一个顶点不允许进入。这允许反向碰撞动画布料。 The pair (collisionSphereRadius, collisionSphereDistance) define a sphere for each cloth vertex. The sphere's center is located at the position constrainPosition - constrainNormal * (collisionSphereRadius + collisionSphereDistance) and its radius is collisionSphereRadius, where constrainPosition and constrainNormal are the vertex positions and normals generated by the SkinnedMeshRenderer. The SkinnedCloth makes sure that the cloth vertex does not enter this sphere. As a typical usecase, set collisionSphereDistance to zero and collisionSphereRadius to a large value w.r.t. the triangle size. In this setup, the cloth collides against the skinned mesh. Default: 0.0 Range: [0,inf) 这两个(collisionSphereRadius, collisionSphereDistance) 定义每个布料顶点的一个球体。该球体的中心是位于位置 constrainPosition - constrainNormal * (collisionSphereRadius + collisionSphereDistance) 并且它的半径是 collisionSphereRadius,其中 constrainPosition 和 constrainNormal 是顶点位置和由 SkinnedMeshRenderer 生成的法线。SkinnedCloth 确保布料顶点不进入这个球体。作为一个典型的用例,设置 collisionSphereDistance 为 0 和 collisionSphereRadius 一个大值 w.r.t.。t 是三角形大小。在这个设置,布料反向碰撞蒙皮网格。默认:0.5 范围:[0,inf]
da
2022年5月17日 17:48
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码