Home › Forum › SOFA › Getting Started › [SOLVED] Fixing Collision for a static floor
Tagged: 64_bits, collision, Linux_ubuntu, SOFA_2006
- This topic has 3 replies, 2 voices, and was last updated 4 years, 1 month ago by Arthur.
-
AuthorPosts
-
25 September 2020 at 18:28 #17220ArthurBlocked
[novice question]
Hello,
I am trying to create a small scene where I have some objects that will eventually move across the floor. However right now I cannot get my elastic objects to collide with the floor so they pass right through.
I also tested out a rigid sphere and that bounces on the floor like I would want / expect.
I think I am missing something fairly small if it is just in the python file, but I made the .msh files myself so I’m not sure if there is something important missing from them.
The scene can be found here: https://drive.google.com/drive/folders/1gQu4EyBqaihXskLhD09kKFOClSakJwRb?usp=sharing
30 September 2020 at 18:27 #17236ArthurBlockedHi @Hugo,
Could you help me with this or direct me to a resource that might help me understand this.
Best,
Arthur2 October 2020 at 00:05 #17252HugoKeymasterHi @amackeith !
Sorry for my latency.
In general, capture collision when objects are moving quickly (large displacement from one time step to another) can be complex. Such a collision detection requires a appropriate/small time step to be properly captured or an alternative can be to use larger alarmDistance (distance starting from which the objects are detected close but not in contact, ie no force applied) and the contactDistance (distance below which a force is applied).In your simulation, you are using Penalty method (see “default” in response) as a collision response. It is particularly sensitive and can easily get unstable. The force applied below the contactDistance is actually proportional to the interpenetration distance (using the contactStiffness) but does not take into account the physics of your objects.
You can notice such “unstable” behavior, despite increasing alarmDistance=4 and contactDistance=1.I get a relative stable behavior by using:
– contactStiffness=”3000″ for the Arm
– massDensity=”0.1″ and contactStiffness=”100″ for the BodyStabler approach relies on Lagrange multipliers, since they would solve the collision as constraints, taking into account the physics of each objects. In this case, there is no need to define (a bit randomly) and use contactStiffnesses.
I hope this helps.
Best,Hugo
2 October 2020 at 01:48 #17253ArthurBlockedThanks Hugo,
I think Lagrange multipliers are the solution to my issue that will work for what I want to do down the line.
Thanks!
Arthur
-
AuthorPosts
- You must be logged in to reply to this topic.