当前位置:网站首页>Unity布料系統_Cloth組件(包含動態調用相關)
Unity布料系統_Cloth組件(包含動態調用相關)
2022-06-26 21:59: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沒有在交互中。
因為是直接使用的,等回頭看看官方文檔再做修改。
边栏推荐
- Centos7 compiling and installing redis
- SAP Spartacus 默认路由配置的工作原理
- Brief analysis of the self inspection contents of the blue team in the attack and defense drill
- 数据治理啥都干
- 【图像处理基础】基于matlab GUI图像曲线调整系统【含Matlab源码 1923期】
- Which securities company is the most convenient, safe and reliable for opening an account
- BN(Batch Normalization) 的理论理解以及在tf.keras中的实际应用和总结
- How to analyze financial expenses
- QT环境下配置Assimp库(MinGW编译器)
- Pass note 【 dynamic planning 】
猜你喜欢

YuMinHong: New Oriental does not have a reversal of falling and turning over, destroying and rising again

网络爬虫2:抓取网易云音乐评论用户ID及主页地址

Application and Optimization Practice of 100 million level monthly live national karaoke feed service in Tencent cloud mongodb
![[fundamentals of image processing] GUI image curve adjustment system based on MATLAB [including Matlab source code 1923]](/img/e8/6342f2dc6e7f06a847852ce4b40719.jpg)
[fundamentals of image processing] GUI image curve adjustment system based on MATLAB [including Matlab source code 1923]

360手机助手首家接入APP签名服务系统 助力隐私安全分发

Test comparison of linear model LN, single neural network SNN, deep neural network DNN and CNN

LabVIEW Arduino TCP/IP远程智能家居系统(项目篇—5)

AI智能抠图工具--头发丝都可见

In 2022, where will the medium and light-weight games go?

vulnhub之DC9
随机推荐
nmap参数详解
不同的子序列问题I
网络连接断开请刷新重试
【图像处理基础】基于matlab GUI图像直方图均衡化系统【含Matlab源码 1924期】
简析攻防演练中蓝队的自查内容
DLA model (classification model + improved segmentation model) + deformable convolution
Leetcode (122) - the best time to buy and sell stocks II
「连续学习Continual learning, CL」最新2022研究综述
Leetcode (763) -- dividing letter ranges
[fundamentals of image processing] GUI image curve adjustment system based on MATLAB [including Matlab source code 1923]
PostgreSQL notes
Word chess based on heuristic search
Vulnhub's dc9
【BUG反馈】WebIM在线聊天系统发消息时间问题
360 mobile assistant is the first to access the app signature service system to help distribute privacy and security
Android mediacodec hard coded H264 file (four), ByteDance Android interview
Data governance does everything
BN(Batch Normalization) 的理论理解以及在tf.keras中的实际应用和总结
Shiniman household sprint A shares: annual revenue of nearly 1.2 billion red star Macalline and incredibly home are shareholders
卷积神经网络(CNN)详解及TensorFlow2代码实现