How to change the distance between two bodies in simulink multibody

9 views (last 30 days)
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.

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.




Community Treasure Hunt

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

Start Hunting!