Skip to content

Using AttachConstraint to tie deformable and rigid objects together #2735

Discussion options

You must be logged in to vote

Sorry for the long wait. I have come to an answer thanks to @hugtalbot and I attach some scripts to exemplify the solutions that we found. It seems that using a projective constraint was not what I looked for, so I did not use an AttachConstraint

Solution based on BilateralInteractionConstraint

The principle is as follows:

  • Create a node for the deformable object with a solver, a mass, a forcefield...
  • Create a MechanicalObject for the interaction points and define a BarycentricMapping between them and the deformable object
  • Create nodes for the grippers with only a mechanical object (no solver or physics, we just want to overwrite their position and orientation at each time step)
  • Add Bilat…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hugtalbot
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by adkoessler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants