- This topic has 3 replies, 2 voices, and was last updated 6 years, 12 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] Avoid changing the trajectory when collision
Tagged: SlidingConstraint
Hello everyone,
We are trying to model a screwdriver pushing an object. The motion of the screwdriver is imposed thanks to a LinearForceField and we would like to constrain the screwdriver such as it keeps its trajectory (=it moves only along an axis).
However, the screwdriver slippes on the target object and rotates. How could we fix it ?
Thanks for the help,
Regards
Configuration:
Linux Fedora
Sofa 17.12
hey @ant0nin ,
Have you looked at the SlidingConstraint ? There is a scene example in examples/Components/constraint/SlidingConstraint.scn.
Cheers,
Hugo
Hi @Hugo ,
We looked at the SlidingConstraint by opening the mentioned example. Thank you Hugo! It was perfectly what we looked for. Roughly, here is what we made: First, we added a fixed line in the space. Then we added 2 points we attached to our screwdriver using a RigidMapping. Finally, we added 2 SlidingConstaint between the line and the respective created points. The result is a rail along which our screwdriver can slide.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.