Documentation

Simulation and Visualization

Run a simulation, visualize a model and its motion, and record an animation video

Update the block diagram to assemble the model and visualize it in its initial configuration. The model visualization opens in a separate utility named Mechanics Explorer. Inspect the visualization pane for modeling issues such as missing bodies or improper joint connections.

Run the simulation to start a physics-based 3-D animation of the model. Be sure to pick a solver suited for physical models, such as Ode15s, and to specify a maximum time step that is small enough to accurately capture the fastest meaningful changes expected in your model.

Visualization Utilities

Mechanics ExplorerVisualize and explore multibody models
Camera ManagerCreate, edit, and delete dynamic cameras
Video CreatorConfigure and create multibody animation videos

Functions

smwritevideoConfigure and create multibody animation videos

Topics

Basic Visualization

Update and Simulate a Model

Workflow steps for updating and simulating a Simscape™ Multibody™ model.

Visualize a Model and Its Components

Visualization is not only a central part of a multibody simulation, it is an essential tool in modeling bodies and verifying their shapes, sizes, frame placements, and colors. Here is an overview of the visualization utilities available in the Simscape Multibody environment and the roles they play in your modeling workflow.

Enable Mechanics Explorer

Set the model configuration parameters to ensure that Mechanics Explorer opens automatically on model update or simulation.

Manipulate the Visualization Viewpoint

Select a standard view, set the up-axis convention, and use mouse shortcuts to rotate, roll, pan, or zoom a model.

Visualize Simscape Multibody Frames

Use Mechanics Explorer frame highlights and Graphic blocks to visualize frames.

Advanced Visualization

Selective Model Visualization

Visualization filtering as a means to selectively show and hide solids, bodies, and multibody subsystems in Mechanics Explorer.

Selectively Show and Hide Model Components

Use selective model visualization to show only those model components that are relevant to you.

Go to a Block from Mechanics Explorer

Use Mechanics Explorer to go to the block corresponding to a tree view pane node.

Cameras and Video Creation

Create a Dynamic Camera

Use Camera Manager to create or edit a model visualization camera with a moving viewpoint.

Visualization Cameras

Distinction between dynamic cameras and the global camera. Camera Manager as a tool for creating dynamic cameras. Dynamic camera keyframe and tracking modes.

Create a Model Animation Video

Save an animation in video format using Video Creator or the smwritevideo function.

Working with Animation

Review how model animations work and explore the basic controls available for animations.

Troubleshooting

Multibody Simulation Issues

Overview of Simscape Multibody simulation issues

Featured Examples

Was this topic helpful?