当前位置:网站首页>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没有在交互中。
因为是直接使用的,等回头看看官方文档再做修改。
边栏推荐
- 网络爬虫2:抓取网易云音乐评论用户ID及主页地址
- Yolov6: the fast and accurate target detection framework is open source
- 在哪家券商公司开户最方便最安全可靠
- MATLAB与Mysql数据库连接并数据交换(基于ODBC)
- QT环境下配置Assimp库(MinGW编译器)
- Which securities company is the most convenient, safe and reliable for opening an account
- 中金证券经理给的开户二维码办理股票开户安全吗?我想开个户
- 【图像处理基础】基于matlab GUI图像曲线调整系统【含Matlab源码 1923期】
- [fundamentals of image processing] GUI image histogram equalization system based on MATLAB [including Matlab source code 1924]
- What is the “ How to remove a custom form list?
猜你喜欢

DAST 黑盒漏洞扫描器 第五篇:漏洞扫描引擎与服务能力

Web crawler 2: crawl the user ID and home page address of Netease cloud music reviews

简述unity的模型动画功能

经典Wide & Deep模型介绍及tensorflow 2代码实现
![[mathematical modeling] spanning tree based on Matlab GUI random nodes [including Matlab source code 1919]](/img/0c/17efaaa2488451b6dd15d9db33eba7.jpg)
[mathematical modeling] spanning tree based on Matlab GUI random nodes [including Matlab source code 1919]

Pass note 【 dynamic planning 】

Introduction of classic wide & deep model and implementation of tensorflow 2 code
![leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]](/img/16/8dc63e6494b3f23e2685e287abc94c.png)
leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]

「连续学习Continual learning, CL」最新2022研究综述

DAST black box vulnerability scanner part 5: vulnerability scanning engine and service capability
随机推荐
Centos7编译安装Redis
买股票通过中金证券经理的开户二维码开户资金是否安全?想开户炒股
vulnhub之DC9
Implementation of collaborative filtering evolution version neuralcf and tensorflow2
Some ways out for older programmers
Different subsequence problems I
在Flutter中解析复杂的JSON
花店橱窗布置【动态规划】
【图像处理基础】基于matlab GUI图像直方图均衡化系统【含Matlab源码 1924期】
Listing of maolaiguang discipline on the Innovation Board: it is planned to raise 400million yuan. Fanyi and fanhao brothers are the actual controllers
CVPR 2022 - Interpretation of selected papers of meituan technical team
LabVIEW Arduino tcp/ip remote smart home system (project part-5)
Word chess based on heuristic search
在哪家券商公司开户最方便最安全可靠
DAST 黑盒漏洞扫描器 第五篇:漏洞扫描引擎与服务能力
360 mobile assistant is the first to access the app signature service system to help distribute privacy and security
证券注册开户有没有什么风险?安全吗?
Introduction of classic wide & deep model and implementation of tensorflow 2 code
Using C to operate SQLSERVER database through SQL statement tutorial
网络爬虫2:抓取网易云音乐评论用户ID及主页地址