![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175728/image.png)
How to implement "Free-fall" using Multibody ?
17 次查看(过去 30 天)
显示 更早的评论
Hi. I've trouble implementing simple "free-fall" using Multibody; a box falls under gravity.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158376/image.png)
However, A box never starts to fall...
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158377/image.png)
The question is how should I add gravity to this box? (The blue plane is ground. )
Could anyone please give me a hand about this ?
0 个评论
采纳的回答
Jose Lara
2016-11-29
编辑:Jose Lara
2016-11-29
Since you are using the Rigid Transforms, the bodies will be attached to their respective axis. A joint is required to specify movement between the bodies and the reference frames. In order to create implement free-fall, you can insert a 6-DOF Joint block or a Planar Joint block to define the box's movement in relation to the environment. Port B of the block will be connected to the frame from where the body will be released and Port F will be connected to the body that will fall.
Using the 6-DOF will be the easiest to implement. If you decide to use the Prismatic Joint block, the Rigid Transforms will have rotate the frame for gravity to act on the box since the block uses the X-Y plane of the base frame as its constraint. The image below shows how to implement the 6-DOF Joint block.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175728/image.png)
Check out the following link on more information on 6-DOF Joint block: http://www.mathworks.com/help/physmod/sm/ref/6dofjoint.html
Check out the following link on more information on Planar Joint block: http://www.mathworks.com/help/physmod/sm/ref/planarjoint.html
1 个评论
Matheus Felipe Rodrigues de Oliveira
2020-1-23
Thank you very much you don't know how it helped me, I was used to the 2016b version thanks to your answer I understood how the new multibody system works.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!