Models interpenetrating each other after collision #5345
Replies: 3 comments
-
|
Hello ! Because you are using functions to generate your scene, looking at your source code doesn't provide any information to me, I'll only answer given your comments and the video. This threshold you are facing might come from the fact that at rest your object already has a distance bellow 1.5 to an obstacle. Meaning that at the first timestep, a force need to be applied to push it. This might indeed break the scene because the required force might be too large. I don't know which primitive you are using for the contact. It is better to always use triangles (or quads) for one and lines or points for the other one (depending which one works best). Is the blue part static (meaning not deformable and never moving ?). If so you can specify on its collision model Another point is to make sure your GenericConstraintSolver is converging (you can look at its tab 'stats' and if the number of steps is bellow the max iteration data you provided then you've converged). You have two solutions following this :
Finally : To insure no volume interpenetration you can use a plugin that uses distance grid for collision. It is called DistanceGrid plugin. s you model is loaded from a file you can directly use this file to generate the distance grid and use this for collision detection. This works best if the object with the distance grid is not moving, so I suggest using it on the blue part. See this scene for an example. Hope that helped ! |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi :)
I have created a scene of simulating the oral stage of swallowing(motors not included, only physical actuators are simulated):
After collision, the tongue interpenetrate the oral passage. I know that with contactDistance being set too low, the models may interpenetrate eachother. However, if I set the contactDistance even slightly higher (like1.5), the tongue will just disappear at the beginning of the simulation and sofa crashes at the start of the simulation (the simulation stops, and the software becomes unresponsive(I think it's because the distance between the tongue and the second elevating actuator is already shorter than 1.5).
Simulation result when contactDistance=1.4 :
testorgans__r60_0026.mp4
Beta Was this translation helpful? Give feedback.
All reactions