当前位置:网站首页>Unity布料系统_Cloth组件(包含动态调用相关)
Unity布料系统_Cloth组件(包含动态调用相关)
2022-06-26 21:58:00 【suixinger_lmh】
Unity布料系统
说明:
unity自带的布料物理系统
使用:
- 新建空物体;
- 添加cloth组件,unity会自动附带skinned mesh renderer组件;
- 将需要的网格和材质,赋值给skinned mesh renderer组件;
- 点击cloth组件的左上角的图标(Edit cloth constraints);
- scene面板中会出现布料参数调节面板(看不到的打开Gizmos,显示场景图标);
- 在模型上选中对应顶点(顶点过大或过小的话,调节Constraint Size的大小到合适的值);
- 根据需求对选中的点进行限制(例如:连接旗杆的那条边一般不会动,勾选Max Distance 值设置为0;让其不能移动);
要点:
1.布料系统目前只能和Capsule Collider 以及Sphere Collider 两种碰撞体交互;
2.要将参与布料物理系统的物体的碰撞体拖入cloth组件的碰撞体组中;
动态调用相关:
问题:
看布料的使用方式基本上就是不建议动态去使用,但其实动态去使用也是可行的。
不过动态调用存在很多问题:
- 动态的给cloth组件添加碰撞体,虽然可以一直添加,但是超过一定数量时,多余的碰撞体并不能够产生物理效果。
- 在布料系统发生物理效果时,如果去改变(删除)碰撞体个数,物理效果会产生突变。在暂时无交互时改变是可行的。
- 添加到布料系统中的碰撞体,即使将物体隐藏掉,enable=false掉,依旧会产生物理效果,甚至于使用position=newpos来改变碰撞体的位置,newpos和当前路径之间经过布料系统,依旧能够发生物理效果。
第三条的效果有些类似于character controller与刚体的一些特性,但布料貌似是将所有数据都放在布料系统里计算了。
这就很坑,要解决第三条,就要把碰撞体从cloth中移除,要移除,就会碰到第二条的问题,需要保证cloth没有在交互中。
因为是直接使用的,等回头看看官方文档再做修改。
边栏推荐
- What is the “ How to remove a custom form list?
- Is it safe to buy stocks and open accounts through the account QR code of the CICC securities manager? Want to open an account for stock trading
- The sharp sword of API management -- eolink
- 协同过滤进化版本NeuralCF及tensorflow2实现
- [LeetCode]-链表-2
- DAST black box vulnerability scanner part 5: vulnerability scanning engine and service capability
- 茂莱光学科创板上市:拟募资4亿 范一与范浩兄弟为实控人
- 财务费用分析怎么分析
- Fastadmin Aurora push send message registration_ Multiple IDs are invalid after being separated by commas
- leetcode:710. Random numbers in the blacklist [mapping thinking]
猜你喜欢
![[solution] sword finger offer 15 Number of 1 in binary (C language)](/img/ab/149775ae8ed94464efdf6921c1022a.png)
[solution] sword finger offer 15 Number of 1 in binary (C language)

Hands on deep learning pytorch version 3 - Data Preprocessing

KDD2022 | 基于知识增强提示学习的统一会话推荐系统

经典Wide & Deep模型介绍及tensorflow 2代码实现

【图像处理基础】基于matlab GUI图像曲线调整系统【含Matlab源码 1923期】

Y48. Chapter III kubernetes from introduction to mastery -- pod status and probe (21)

Leetcode (452) - detonate the balloon with the minimum number of arrows

基于启发式搜索的一字棋

MATLAB与Mysql数据库连接并数据交换(基于ODBC)

Data governance does everything
随机推荐
vulnhub之dc8
简析攻防演练中蓝队的自查内容
Hands on deep learning pytorch version 3 - Data Preprocessing
在哪个平台买股票开户最安全?求分享
Comprehensive evaluation of online collaboration documents: note, flowus, WOLAI, Feishu, YuQue, Microsoft office, Google Docs, Jinshan docs, Tencent docs, graphite docs, Dropbox paper, nutcloud docs,
尚硅谷DolphinScheduler视频教程发布
中金证券经理给的开户二维码办理股票开户安全吗?我想开个户
不同的子序列问题I
YuMinHong: New Oriental does not have a reversal of falling and turning over, destroying and rising again
curl: (35) LibreSSL SSL_ connect: SSL_ ERROR_ SYSCALL in connection
Icml2022 | neurotoxin: a lasting back door to federal learning
简述unity的模型动画功能
聊聊我的远程工作体验 | 社区征文
Flutter 中 ValueNotifier<List<T>> 监听问题解决
卷积神经网络(CNN)详解及TensorFlow2代码实现
【题解】剑指 Offer 15. 二进制中1的个数(C语言)
Convolutional neural network (CNN) explanation and tensorflow2 code implementation
DLA model (classification model + improved segmentation model) + deformable convolution
Is this a bug? Whether the randomly filled letters can be closed
会计要素包括哪些内容