Forces not working #2617
-
When I create a model and simulate it in SOFA, for some models none of the forces applied activate at all. It might be due to overload, but time passes as usual and the framerate is at a value that should still allow me to see motion. What could be the possible causes for this? The blue cuboid is supposed to fall onto the legs, but it doesn't move at all. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 7 replies
-
What forces are you talking about? |
Beta Was this translation helpful? Give feedback.
-
Currently |
Beta Was this translation helpful? Give feedback.
-
Welcome @Hellscythe789 @alxbilger is definitely right, a As a reminder, when choosing a contact response "FrictionContactConstraint", you will generate constraints for each contact points (output of the detection). This requires therefore to be able to solve such constraints: this can be done using:
The FreeMotionAnimationLoop computes four steps:
I hope this clarifies things. Hugo |
Beta Was this translation helpful? Give feedback.
-
Hard to guide you more @Hellscythe789 without seeing and testing the simulation. Is there a repo where we can access it (with associated meshes) ? Else, I would say maybe a problem of convergence: you could separately try increasing the number of steps in the ConstraintSolver, reducing the time step. Is the simulation returning any error in the console? |
Beta Was this translation helpful? Give feedback.
-
From what I see, the problem of your simulation might be related to:
Does this make sense @Hellscythe789 ? |
Beta Was this translation helpful? Give feedback.
-
@hugtalbot you were right, the objects were already in the first collision step, so it was behaving oddly. I shifted the Ext's a bit upward and everything started working normally. |
Beta Was this translation helpful? Give feedback.
From what I see, the problem of your simulation might be related to:
contactDistance="0.25"
) at startDoes this make sense @Hellscythe789 ?