-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Softbody-Rigidbody collisions #149
Comments
Hello Johannes, Thank you for creating this issue. Can you please attach a zipped folder with your ADF file and the meshes in it so I can test it? Also, if you are using a custom rigid body, can you please also include its ADF files, or let me know which one from ambf_models are you using. Here are the answers to specific questions:
Your observation is correct. For softbodies, we would always want to collide with rigid bodies that are made up of collision primitives, unless the bodies are static, or have a very low vertex count. If you are already using primitives, we might not just tune some parameters.
Yes, your observation is correct. This is something that we need to fix. In general, there is some work needed on the soft body interface, we have done a lot of restructuring this year and we hope to get to the better soft body integration soon. |
Hello Adnan, thank you for your response! Here you can find my models. One stick using primitives and a rubber band fixed on both sides. But I also used many different rigid bodies. Many Thanks in advance |
Hi Johannes, Thanks for explaining your intent, I like your drawing :D. I got a chance to test the model files and see what is going on. Here are a couple of things that I noticed and would be worth noting:
I updated the models based on the two suggestions above and you can find it here: Here is a GIF of the result that I got: Finally, we have our work cut out to improve softbody support, but hopefully this will help you somewhat. |
If a softbody is defined via .OBJ file, we can retrieve the original indexes from the mesh file to set the fixed nodes.
I got some time to try and fix the setting of "fixes nodes" using the vertex indices from the original mesh. You can try pulling For the example of the mesh above, the vertices at the four corners seem to be fixed nodes: [0,2,3,9,6,152,153,155] |
Hi Adnan, thanks a lot for your help! Also thanks for the quick fix on the indices! |
Hi Johannes, |
Hi Adnan,
I am currently trying out the softbody capabilities and want a rigid body to interact with a king of rubber band. But any sort of collision or sometimes even near collisions create chaotic behaviour in the rubber band.
Using the mouse to manipulate the rubber band works fine.
I tried the cheese example with better success, so I am assuming my softbody parameters are incorrect. I tried your parameters from this issue #39 but to no avail.
My file looks like this,
My rubber band (derived from your cloth sample) looks like this in blender:
Trying contact with meshes for collision drops my physics-framerate to 1-10 even just getting close. Using primitives I at least can get close, but contact still results in chaotic behaviour, especially of the softbody.
How can I achieve stable interaction between rigid bodies and something like a rubber band?
Sidenote: Also indices of vertices in blender don't seems to correspond to the indices specified in fixed nodes. How do I know which indices are which so i can fix both sides?
Sorry for the long question and thank you for your work and help!
The text was updated successfully, but these errors were encountered: