Skip to content

Control the contact between a rigid ball and a flexible object #5022

Answered by bakpaul
zhanglepy asked this question in SofaPython3
Discussion options

You must be logged in to vote

Hello !

The problem here is that you are mistaking imposing position with modification of its position data field. This data-field is overridden by the solver. When you move it yourself, if it is interacting with nothing, the solver will not modify it because the increase of velocity of this time-step is null, because no force is applied on it. But when you enter in contact with the object, nothing is holding it at the place you are placing it, so when solving for the contact, it is way easier to push on the sphere than on the model, so its position seems kind of overridden.

What you need here, is to impose the position of the sphere in a way, telling the solver that its position is stron…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by hugtalbot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants