How can we update mechanics explorer's view point in real time?

3 views (last 30 days)
How can we update mechanics explorer's view point in real time to view the dynamics of the body. The body has large displacements calculated from simulink. So on running the simulation, at many time I have to manually set the viewpoint in mechanics explorer to visualize.

Answers (1)

Steve Miller
Steve Miller on 8 Mar 2018
You can define cameras within the Mechanics Explorer. The location and orientation of the camera can change during the animation of the simulation results, and those results can be exported to a video.
See Camera Manager in the documentation.
Below is an example of an animation exported from the Simscape Multibody Mechanics Explorer with a dynamic camera. The camera can also be configured to track the box, always keeping it in the center of the frame. This example is available on the File Exchange: Robot Arm with Conveyor Belts.
--Steve

Categories

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

Community Treasure Hunt

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

Start Hunting!