While rotating the object in Simscape Multibody 3D simulation the object suddenly gets disappeared from the view. How to fix this issue ?

4 views (last 30 days)
when I do not rotate the object in 3D animation, the body remain in there. I tried to use 'fit to view' in 3D animation, the object comes there for a fraction of a second and again gets disappeared from the view.

Answers (1)

Steve Miller
Steve Miller on 1 Apr 2019
The default viewpoint for the Mechanics Explorer is a fixed location and orientation in space. If your object is moving, it will move out of the field of view.
Try defining a new camera that tracks a frame. This page in the documentation will get you started.
--Steve
  3 Comments
Steve Miller
Steve Miller on 12 Dec 2019
Hi Guanlin - the frame that is highlighted is not the global world frame. The orientation of the global world frame is shown in the triad in the lower left corner. The frame you have highlighted belongs to a part in your model. To orient the view so that is vertical, you can
  1. Manually adjust the viewpoint using the Rotate, Roll, and Pan tools (in the toolbar, you can also right click in the viewer to access them).
  2. Create a frame in your model that is aligned with this frame but offset some distance away using a Rigid Transform block and define a tracking camera that will point at this frame.
--Steve
Guanlin
Guanlin on 17 Dec 2019
Hi Steve, thanks for your reply to my question! Your answer had helped me to think deeper the issue. Actually the reason why it is not vertical is simply because I have accidentally comment out the world frame I have explicitely defined!
In addition, could you please send me the file "Flexible Body Models in Simscape Multibody" in the version of 2018a? My email adress is gao@ims.tu-darmstadt.de. I really appreciate that. thanks.

Sign in to comment.

Categories

Find more on Simulation and Analysis in Help Center and File Exchange

Tags

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!