powroupi / blender_mmd_tools

mmd_tools is a blender addon for importing Models and Motions of MikuMikuDance.
GNU General Public License v3.0
1.81k stars 277 forks source link

Rigid Body collision groups not functioning properly #313

Closed Unseen110 closed 3 years ago

Unseen110 commented 3 years ago

I set up my model's rigid body groups in PMXEditor so that the arms do not collide with cloth/hair, and it works fine in MMD. But when I convert the model to Blender, the arms still do collide with cloth&hair. I checked the rigid body settings under MMD Rigid Body tab in Blender and it all looks like the way I set it up in PMXEditor, but the collision rules still aren't working.

nagadomi commented 3 years ago

Preferences > Addon > mmd_tools > preferences > Non-Collision Threshold. Setting the above property to 100 and then rebuilding the physics(MMD Tab > Physics: Clean,Build) will probably solve this problem. mmd_tools uses non-collision constraints to simulate MMD's collision group mask in Blender. if the distance between the rigid bodies is greater than Non-Collision Threshold, the non-collision constraint for them is not created for performance reasons.

Unseen110 commented 3 years ago

Ok yeah that works, thanks