欢迎光临散文网 会员登陆 & 注册

HoneySelect2MOD制作,Unity启动Cloth布料组件,通过manifest添加碰撞体的方法。

2023-03-17 16:55 作者:极地羽翼  | 我要投稿

UNITY添加Cloth组件后,可以不用填写具体碰撞体信息,我已经大致整理好了,直接复制到manifest里改一下cloth id="" category="" clothName=""就行,也可以自己微调radius,标红部分请按照自己MOD的实际参数调整。
————————————————————

<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>


HoneySelect2MOD制作,Unity启动Cloth布料组件,通过manifest添加碰撞体的方法。的评论 (共 条)

分享到微博请遵守国家法律