cuddlyogre / ExportLDraw

LDraw Import and Exporter for Blender 2.82+
GNU General Public License v2.0
49 stars 12 forks source link

Parts Don't Tumble in Physics Simulation #31

Closed ekohlwey closed 10 months ago

ekohlwey commented 1 year ago

Hi there!

I was trying your plugin out today and found that the imported parts don't tumble in a rigid body simulation, even if the shape is set to mesh or convex hull (or anything else for that matter). Bounce, for example does work properly though.

I'm at somewhat of a loss of how to provide a better report since I'm not much of a blender user, but happy to do some legwork if you have ideas.

cuddlyogre commented 1 year ago

In my testing, it has to do with the part being parented to the normal and the scale. It looks like the physics simulation sees the part as multiple km in size.

I was able to get it to work by unchecking the circled items when you import. image

You may be able to get away with just unchecking the parent to empty item. image

With the part(s) imported, apply the scale.

Then select the part, go to the physics properties, and check rigid body. I also added a collision plane with rigid body on, with type passive.

image image image

It seems I need to add options to set up rigid body on imported parts.

ekohlwey commented 1 year ago

Thanks! Unchecking those options and applying the scale worked as you recommended.

markelwin commented 11 months ago

Hello. Is this ticket considered closed? I am interested in implementing a good first issue on the repository to volunteer my time in exchange for learning how this software works. Please reach out to me if either of you are interested and I will follow up in email.