UuuNyaa / blender_mmd_tools

MMD Tools is a blender addon for importing/exporting Models and Motions of MikuMikuDance.
GNU General Public License v3.0
1.91k stars 91 forks source link

Rigid Body 'Collision Group Mask' not working in Blender 3.6.5 #118

Open wikid24 opened 7 months ago

wikid24 commented 7 months ago

Hi,

I don't know what I am doing wrong, I cannot get 'Collision Group Mask' to ignore some rigid bodies.

These breasts/ oppai (collision group 2) will still collide with the arms/hands (collision group 0), even though they are both set to ignore eachother.

Screenshot: image

Video: https://github.com/UuuNyaa/blender_mmd_tools/assets/19479648/bd5cb8b3-748d-48a4-a1f6-48eacb5c2ed7

Sample File: collision_group_mask_defect.zip

fmnijk commented 7 months ago

There are no Collision Group and Collision Group Mask in Blender now. Now it's called Collision Collections. Please use Collision Collections setting in Rigid Body settings.

wikid24 commented 7 months ago

Thanks, I never knew that! If MMD Tools is not doing it right now, then it need to get updated with a translation layer.

3.6 API documentation: https://docs.blender.org/api/3.6/bpy.types.RigidBodyObject.html#bpy.types.RigidBodyObject.collision_collections 4.0 manual documentation: https://docs.blender.org/manual/en/latest/physics/cloth/settings/collisions.html

Will play around with the settings, but this is needed-- especially for all the models I convert to MMD while in blender.

nagadomi commented 7 months ago

Collision Group Mask is a PMX property. mmd_tools translates it to Blender's Rigid Body Constraints.

@wikid24 Maybe it is a problem related to Non-Collision Distance Scale. Clicking on Model Setup > Assembly > Physics and set Non-Collision Distance Scale to 10 on Build Rig operator panel should fix it.

wikid24 commented 7 months ago

Thank you for the feedback @nagadomi ! I am sorry I must be blind, I see that this is mentioned on the Documentation Website But I cannot find 'Non-Collision Distance Scale' anywhere, I even checked on Blender website:

image

image

nagadomi commented 7 months ago

@wikid24 build_rig

wikid24 commented 7 months ago

Thank you, this fixed it! :)

This property is not exposed anywhere on the UI, it would be good to have this actually visible somewhere since it is very easy to miss. There is also no screenshots of it on the website)

wikid24 commented 7 months ago

After video:

https://github.com/UuuNyaa/blender_mmd_tools/assets/19479648/9c1347e8-6076-4cc2-ad4d-02031c1e447b