HoneySelect2MOD制作,Unity啟動Cloth布料組件,通過manifest添加碰撞體的方法。

UNITY添加Cloth組件后,可以不用填寫具體碰撞體信息,我已經(jīng)大致整理好了,直接復制到manifest里改一下cloth id="" category="" clothName=""就行,也可以自己微調radius,標紅部分請按照自己MOD的實際參數(shù)調整。
————————————————————
<manifest schema-ver="1">
<guid>XXX.123</guid>
<name>XXX 123</name>
<version>XXXX.XX.XX</version>
<author>XXX</author>
<AI_ClothColliders>
<cloth id="2490" category="fo_top" clothName="mesh.lifu_top_a">
<SphereColliderPair>脊柱
<first boneName="cf_J_Kosi02_s" radius="1" center="0.00, -0.05, -0.08" />
<second boneName="cf_J_Kosi01_s" radius="0.9" center="0.00, 0.00, 0.00" />
</SphereColliderPair>
<SphereColliderPair>脊柱-左臀
<first boneName="cf_J_Kosi01_s" radius="0.9" center="0.00, 0.00, 0.00" />
<second boneName="cf_J_Siri_s_L" radius="1.1" center="0.2, -0.15, 0.75" />
</SphereColliderPair>
<SphereColliderPair>脊柱-右臀
<first boneName="cf_J_Kosi01_s" radius="0.9" center="0.00, 0.00, 0.00" />
<second boneName="cf_J_Siri_s_R" radius="1.1" center="-0.2, -0.15, 0.75" />
</SphereColliderPair>
<SphereColliderPair>左臀-左大腿
<first boneName="cf_J_Siri_s_L" radius="1.1" center="0.2, -0.15, 0.75" />
<second boneName="cf_J_LegUp01_s_L" radius="0.85" center="0.00, -1.00, 0.10" />
</SphereColliderPair>
<SphereColliderPair>右臀-有大腿
<first boneName="cf_J_Siri_s_R" radius="1.1" center="-0.2, -0.15, 0.75" />
<second boneName="cf_J_LegUp01_s_R" radius="0.85" center="0.00, -1.00, 0.10" />
</SphereColliderPair>
<SphereColliderPair>左大腿-左膝蓋
<first boneName="cf_J_LegUp01_s_L" radius="0.85" center="0.00, -1.00, 0.10" />
<second boneName="cf_J_LegKnee_low_s_L" radius="0.7" center="0.05, 0.00, -0.27" />
</SphereColliderPair>
<SphereColliderPair>右大腿-右膝蓋
<first boneName="cf_J_LegUp01_s_R" radius="0.85" center="0.00, -1.00, 0.10" />
<second boneName="cf_J_LegKnee_low_s_R" radius="0.7" center="-0.05, 0.00, -0.27" />
</SphereColliderPair>
<SphereColliderPair>左膝蓋-左小腿
<first boneName="cf_J_LegKnee_low_s_L" radius="0.7" center="0.05, 0.00, -0.27" />
<second boneName="cf_J_LegLow02_s_L" radius="0.7" center="-0.05, 0.70, -0.20" />
</SphereColliderPair>
<SphereColliderPair>右膝蓋-右小腿
<first boneName="cf_J_LegKnee_low_s_R" radius="0.7" center="-0.05, 0.00, -0.27" />
<second boneName="cf_J_LegLow02_s_R" radius="0.7" center="0.05, 0.70, -0.20" />
</SphereColliderPair>
<SphereColliderPair>左小腿-左腳踝
<first boneName="cf_J_LegLow02_s_L" radius="0.7" center="-0.05, 0.70, -0.20" />
<second boneName="cf_J_LegLow03_s_L" radius="0.6" center="0.00, 0.00, -0.07" />
</SphereColliderPair>
<SphereColliderPair>右小腿-右腳踝
<first boneName="cf_J_LegLow02_s_R" radius="0.7" center="0.05, 0.70, -0.20" />
<second boneName="cf_J_LegLow03_s_R" radius="0.6" center="0.00, 0.00, -0.07" />
</SphereColliderPair>
<CapsuleCollider boneName="cf_J_Kosi01_s" radius="0.90" center="0.00, -0.50, -0.20" height="3.00" direction="0" />胯骨
<CapsuleCollider boneName="cf_J_Spine01_s" radius="0.80" center="0.00, 0.00, 0.00" height="2.20" direction="0" />胯
<CapsuleCollider boneName="cf_J_Spine02_s" radius="0.85" center="0.00, 0.00, 0.00" height="2.20" direction="0" />腰
<CapsuleCollider boneName="cf_J_Spine03_s" radius="1.00" center="0.00, 0.00, 0.00" height="2.50" direction="0" />胸
</cloth>
</manifest>