当前位置:网站首页>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沒有在交互中。
因為是直接使用的,等回頭看看官方文檔再做修改。
边栏推荐
- vulnhub之dc8
- YOLOv6:又快又准的目標檢測框架開源啦
- Godson China Science and technology innovation board is listed: the market value is 35.7 billion yuan, becoming the first share of domestic CPU
- 在哪个平台买股票开户最安全?求分享
- CVPR 2022 - Interpretation of selected papers of meituan technical team
- MATLAB and MySQL database connection and data exchange (based on ODBC)
- DLA model (classification model + improved segmentation model) + deformable convolution
- 模块五作业
- 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,
- 简述unity的模型动画功能
猜你喜欢

基于启发式搜索的一字棋

Yolov6: the fast and accurate target detection framework is open source

矩阵求导及其链式法则

vulnhub之DC9

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

Matrix derivation and its chain rule

Godson China Science and technology innovation board is listed: the market value is 35.7 billion yuan, becoming the first share of domestic CPU

花店橱窗布置【动态规划】
![leetcode:710. Random numbers in the blacklist [mapping thinking]](/img/ec/a3faeae6636bc3d0d9536962fdd9af.png)
leetcode:710. Random numbers in the blacklist [mapping thinking]

DLA模型(分类模型+改进版分割模型) + 可变形卷积
随机推荐
Which securities company is the most convenient, safe and reliable for opening an account
传纸条【动态规划】
[solution] sword finger offer 15 Number of 1 in binary (C language)
Parsing complex JSON in fluent
DAST 黑盒漏洞扫描器 第五篇:漏洞扫描引擎与服务能力
fastadmin极光推送发送消息的时候registration_id多个用逗号分割后无效
Sword finger offer 12 Path in matrix
The network connection is disconnected. Please refresh and try again
简析攻防演练中蓝队的自查内容
YuMinHong: New Oriental does not have a reversal of falling and turning over, destroying and rising again
Pass note 【 dynamic planning 】
中金财富开户安全吗?我想开户炒股。
[fundamentals of image processing] GUI image histogram equalization system based on MATLAB [including Matlab source code 1924]
Listing of maolaiguang discipline on the Innovation Board: it is planned to raise 400million yuan. Fanyi and fanhao brothers are the actual controllers
Android mediacodec hard coded H264 file (four), ByteDance Android interview
Vulnhub's dc9
卷积神经网络(CNN)详解及TensorFlow2代码实现
Which securities company is the most convenient, safe and reliable for opening an account
How SAP Spartacus default routing configuration works
leetcode:710. Random numbers in the blacklist [mapping thinking]