MATLAB Answers

0

View specifications for Simscape Multibody?

Asked by Chuck Saunders on 27 May 2016
Latest activity Edited by Steve Miller on 3 Apr 2019
Hello, I'm running some complex Simscape Multibody simulations. The 3D output window is currently sufficient for what I'm doing, but objects keep leaving the screen.
With conventional plots, this would be no issue - I would just set
axis([-x +x -y +y -z +z]);
view([az el]);
and get the window view fixed at what I want it to be. Is something similar possible with the Simscape Multibody viewer?

  0 Comments

Sign in to comment.

1 Answer

Answer by Steve Miller on 3 Apr 2019
Edited by Steve Miller on 3 Apr 2019
 Accepted Answer

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. You can define viewpoints that will track objects. See this video Exploring Simscape Multibody Models (2 minutes)
Try defining a new camera that tracks a frame. This page in the documentation will get you started.
--Steve

  0 Comments

Sign in to comment.