sofa-framework / sofa

Real-time multi-physics simulation with an emphasis on medical simulation.
https://www.sofa-framework.org
GNU Lesser General Public License v2.1
934 stars 312 forks source link

[Collision] ADD optional viscous friction at sliding contact points #4991

Open aleblanc30 opened 2 months ago

aleblanc30 commented 2 months ago

Add a parameter "drag" to the collision response. When two objects slip past each other, a force of magnitude -drag*relative_velocity is applied to the contact points.


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

hugtalbot commented 2 months ago

Hi @aleblanc30 A very nice PR for a first PR! Thanks a lot reviews have been shared to you:

MOR plugin need to be fixed (we will take care of it) and take reviews into account regarding the object registration.

aleblanc30 commented 2 months ago

Thank you @hugtalbot, I'm working on it :-)