# How to implement "Free-fall" using Multibody ?

조회 수: 22(최근 30일)
Fujihiro 2016년 11월 26일
편집: Walter Roberson 2020년 1월 26일
Hi. I've trouble implementing simple "free-fall" using Multibody; a box falls under gravity.
However, A box never starts to fall...
The question is how should I add gravity to this box? (The blue plane is ground. )

댓글을 달려면 로그인하십시오.

### 채택된 답변

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.
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표시숨기기 없음
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.

댓글을 달려면 로그인하십시오.

### Community Treasure Hunt

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

Start Hunting!

Translated by