주요 콘텐츠

Multibody Explorer

R2026b

Visualize and explore multibody models

Description

Use the Multibody Explorer tool to interactively visualize and explore multibody models. The tool consists of the Model Tree pane, the Properties pane, and a visualization pane.

With the Multibody Explorer, you can:

  • Interactively View Configurations: View the model configuration in the visualization pane.

  • Explore Model Hierarchy: Navigate through the model hierarchy using the model tree.

  • Examine and Update Parameters: Access and modify component parameters by using the Properties pane.

  • Dynamic Camera Management: Enhance model visualization by creating and editing dynamic cameras using the Camera Manager.

  • Video Creation and Configuration: Produce and configure videos of multibody animations by using the Video Creator.

Multibody Explorer UI

Open the Multibody Explorer

By default, Multibody Explorer opens when you update or simulate a multibody model. If Multibody Explorer does not open:

  1. In the Simulink Toolstrip, on the Modeling tab, select Model Settings.

  2. In the left pane of the Configuration Parameters dialog box, navigate to Simscape Multibody > Explorer.

  3. Select the Open Multibody Explorer on model update or simulation check box.

Examples

expand all

This example shows how to specify views of multibody models using the Multibody Explorer. In the visualization pane, you can interactively examine the body geometries, mechanical connections, and trajectories of a multibody model in 3-D space. To view model details, you can adjust the views of a model. You can change the view by:

  • Selecting a standard view.

  • Using the view selection cube or orientation triad.

  • Rotating, panning, and zooming.

In this example, you explore a model of a robotic arm.

Select a Standard View

Use the seven standard views to change the perspective of a multibody model. To select a standard view, in the Multibody Explorer toolstrip, on the Views tab, click one of the standard view buttons.

Use View Selection Cube and Orientation Triad

You can use the view selection cube and the orientation triad to manipulate the view of a model. Use the View Selection Cube, located in the upper-right corner of the visualization pane, to select different model views. By clicking on the faces, edges, and corners of the cube, you can access corresponding views of the model. For example, clicking the front face of the cube shows the front view of the model in the visualization pane, while clicking the corner shared by the front, top, and right faces shows the ISO view.

Use the orientation triad, in the bottom-left corner of the visualization pane, to orient the model view. For instance, clicking on the x-, y-, or z-axis of the triad makes the selected axis perpendicular to the screen.

Rotating, Panning, and Zooming

To view your model from an arbitrary perspective or at different zoom levels, use these buttons in the Multibody Explorer toolstrip:

  • — Rotate the camera about a general 3-D axis.

  • — Roll the camera around its current aim axis.

  • — Move the camera in the current visualization plane.

  • — Increase or decrease the camera zoom level.

  • — Adjust the camera zoom to focus on a selected region.

You can also use keyboard and mouse shortcuts to navigate the model. This table summarizes the available shortcuts:

Action

Shortcut

Rotate

1. Click and hold the mouse scroll wheel.

2. Move the mouse in the desired direction to rotate the model.

Pan

1. Press and hold Shift key.

2. Click and hold the mouse scroll wheel.

3. Move the mouse in the desired direction to pan the model.

Zoom

1. Press and hold Ctrl key.

2. Click and hold the mouse scroll wheel.

3. Move the mouse up to zoom in, down to zoom out.

Fit to view

Press Space key.

Use Multiple Visualization Tiles

To observe a model from different perspectives simultaneously, in the toolstrip, on the Setup section, uses these buttons to split the visualization pane into multiple tiles:

You can at most have four tiles in the visualization pane. You can merge two tiles by clicking the black dot between the tiles. To ensure that the resulting tile uses the view point of one or the other tile, select that tile first before clicking the black dot between the tiles.

The view convention determines the perspective from which you view your model. To specify view conventions, in the Setup section, select one of these options:

This example shows how to use the Properties pane to update parameters of components and subsystems in a multibody model.

Open the example and run the FourBar model.

Update the Crank Link Length

In the four-bar model, the Crank Link is a subsystem that represents the crank link, including its length, density, and color. To update the parameters of this subsystem, follow these steps:

  • In the Model Tree pane, select Crank Link. The Properties pane shows the parameters for the Crank Link subsystem.

  • To change the length set Link length (cm) to 5 cm.

  • In the Multibody Explorer toolstrip, on the Simulation tab, click Update Model .

Specify Joint Position Target

You can specify properties for the components in the model, such as a joint block. To set the position target of the base-crank revolute joint, use the Properties pane and follow these steps:

  • In the Model Tree pane, select Base-Crank Revolute. The Properties pane shows the parameters of the joint.

  • In the Properties pane, navigate to Z Revolute Primitive (Rz) > State Targets > Specify Position Target. In the Value field, enter -30 deg.

  • In the Multibody Explorer toolstrip, on the Simulation tab, click Update Model .

The image shows the updated system.

Related Examples

Parameters

expand all

Simulation

This button changes behavior depending on the simulation state:

  • When the simulation is stopped, click Run to start the simulation.

  • When the simulation is running, click Pause to pause the simulation at the current time step.

  • When the simulation is paused, click Continue to resume the simulation from the paused state.

Click Stop to end the current simulation.

Click Update Model to compile and update the Simulink model diagram without running a simulation. The visualization pane refreshes to reflect the current model configuration. You can also press Ctrl+D. The visualization pane is temporarily disabled during the update.

Setup

Click Save to store the current Multibody Explorer view configuration in the associated Simulink model. After you save the configuration, you must also save the Simulink model for the settings to persist across sessions.

The saved configuration includes:

  • View orientation (camera position, center, and up vector)

  • View convention (Z-Up, Y-Up, or Aerospace)

  • Viewport layout (single view or split views)

  • Background color

  • Camera assignments (which camera is active in each view)

  • Custom cameras created with the Camera Manager

  • Playback speed

  • Video creation settings

The saved configuration does not include:

  • Component visibility (hidden or shown state of bodies)

  • Frame visibility

  • Center of mass visibility

Click Restore to revert the Multibody Explorer view to the last saved configuration. This action discards any unsaved changes to the view orientation, background color, layout, and camera assignments.

If you have not yet clicked Save during the current session, Restore reverts to the configuration stored in the Simulink model from a previous session.

Select the orientation convention that determines how the standard views (Front, Back, Top, Bottom, Left, Right, Isometric) are defined:

  • Z-Up — The z-axis points up. This is the default convention.

  • Z-Down — The z-axis points down.

  • Y-Up — The y-axis points up.

Select the action that occurs when you left-click and drag in the visualization pane:

  • Select — Click to select components in the visualization pane. Selected components are highlighted in the model tree.

  • Rotate — Click and drag to rotate the view around the center of the scene.

  • Roll — Click and drag to roll the camera around the viewing axis.

  • Pan — Click and drag to pan the view horizontally and vertically.

  • Zoom — Click and drag up to zoom in or down to zoom out.

  • Region Zoom — Click and drag to draw a rectangle defining the zoom region.

Click Single to display the visualization in a single view. This is the default layout.

Click Four to split the visualization into four tiles arranged in a 2-by-2 grid. The tiles are automatically assigned the Front, Top, Right, and Isometric standard views. You can reassign views or cameras to individual tiles after splitting.

Click Split Horizontal to divide the visualization pane into two horizontal tiles stacked vertically. Each tile can display a different view angle or camera.

Click Split Vertical to divide the visualization pane into two vertical tiles side by side. Each tile can display a different view angle or camera.

Click Background to open a color picker and select a new background color for the visualization pane. The background color is included in the saved configuration when you click Save.

Standard Views

Click Front to orient the camera to show the front of the model. You can also press Shift+1. The exact orientation depends on the selected View Convention.

Click Back to orient the camera to show the back of the model. You can also press Shift+2. The exact orientation depends on the selected View Convention.

Click Top to orient the camera to show the top of the model. You can also press Shift+3. The exact orientation depends on the selected View Convention.

Click Bottom to orient the camera to show the bottom of the model. You can also press Shift+4. The exact orientation depends on the selected View Convention.

Click Left to orient the camera to show the left side of the model. You can also press Shift+5. The exact orientation depends on the selected View Convention.

Click Right to orient the camera to show the right side of the model. You can also press Shift+6. The exact orientation depends on the selected View Convention.

Click Iso to orient the camera to an isometric view that shows three faces of the model equally. You can also press Shift+7. The exact orientation depends on the selected View Convention.

Click Fit View to automatically zoom and center the camera so that all visible components fit within the visualization pane.

Overlays

Click Frame to toggle the display of coordinate frames in the visualization pane. When enabled, each frame in the model is displayed as a triad of colored axes. This setting is not included in the saved configuration.

Click Center of Mass to toggle the display of center of mass indicators in the visualization pane. When enabled, each body displays a marker at its center of mass location. This setting is not included in the saved configuration.

Diagnostics

Click Statistics Viewer to open the Statistics Viewer tool, which displays model statistics such as the number of rigid bodies, joints, constraints, and degrees of freedom in the multibody model.

Click Variable Viewer to open the Variable Viewer tool, which displays the variables and their values for each block in the model.

Click Results Explorer to open the Simscape Results Explorer tool, which enables you to explore and plot simulation results for Simscape Multibody blocks. This button is enabled only after a simulation has generated log data.

Apps

Click Camera Manager to open the Camera Manager, which enables you to create, edit, and delete dynamic cameras with tracking or keyframe modes.

Click Video Creator to open the Video Creator, which enables you to produce and configure videos of multibody animations.

Context Menu — Component Visibility

Right-click a node in the Model Tree pane and select Show This to make the selected component and its children visible in the visualization pane. This option is enabled only for nodes that have renderable geometry, such as solids, bodies, and multibody subsystems.

Right-click a node in the Model Tree pane and select Hide This to hide the selected component and its children from the visualization pane. This option is enabled only for nodes that have renderable geometry, such as solids, bodies, and multibody subsystems.

Right-click a node in the Model Tree pane and select Show Only This to show only the selected component and hide all other components in the model. This option is enabled only for nodes that have renderable geometry.

Right-click a node in the Model Tree pane and select Show Everything to restore visibility of all components in the model. This option is always enabled regardless of which node is selected.

Right-click a node in the Model Tree pane and select Go To Block to highlight the corresponding Simulink block in the model canvas. The block diagram scrolls to make the block visible. This option is not available for port nodes or connection frame nodes.

Limitations

  • On macOS platforms, the Multibody Explorer runs at a low frame rate if the model has a geometry with a large number of triangles or vertices. To mitigate this issue:

  • The Multibody Explorer does not support visualization for Model References. To resolve this issue, turn off the visualization for referenced models:

    1. In the Simulink Toolstrip, on the Modeling tab, select Model Settings.

    2. In the left pane of the Configuration Parameters dialog box, navigate to Simscape Multibody > Explorer.

    3. Clear the Open Multibody Explorer on model update or simulation check box.

Tips

  • After you click Save, you must also save the Simulink model for the view configuration to persist in future sessions.

  • Component visibility, including whether components are shown or hidden, is a session-only setting. The Save and Restore buttons do not capture or restore which components are hidden or shown.

  • If you split the visualization into multiple views, show and hide actions apply to all views simultaneously. You cannot hide a component in one view while showing it in another.

  • In the Model Tree pane, components displayed in bold font are visible in the visualization pane, while components displayed in normal font are hidden.

  • The Results Explorer button requires simulation log data. Run or replay a simulation before opening the Results Explorer.

Version History

Introduced in R2012a

expand all