How to change the distance between two bodies in simulink multibody

3 views (last 30 days)
Lindrit Hasani
Lindrit Hasani on 17 Mar 2022
Answered: Steve Miller on 8 Apr 2022
Hey,
i want to do a simulation with simulink multibody but i need to change the distance between two bodies (which consist multiple other bodies).
I've found that i can use the distance constraint but then my one body will rotate around the other body. Is there any possibility to stop that rotating or is there a another option to change distance between two bodies.
Thanks
liqu

Answers (1)

Steve Miller
Steve Miller on 8 Apr 2022
Hi - if you connect a Prismatic Joint between the two bodies and set it up for prescribed motion (Force: Automatically Computed; Motion: Provide by Input), you can have your two bodies remain a specified distance apart.
--Steve

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by