| Contents | Index |
| On this page… |
|---|
You can customize the way that SimMechanics visualization displays bodies, in terms of their colors and geometry. The geometry is composed of the body's size and shape.
You can adjust the body color on a model- or machine-wide basis, or on an individual body basis.
With an external graphics file referenced by a Body block, the visualization window can visualize the body with whatever shape the graphics file specifies.
Starting visualization is discussed in
The Introducing Visualization and Animation chapter preceding
The model–machine–body hierarchy controls the model- and machine-default body colors and geometries. See Hierarchy of Body, Machine, and Model Visualization Settings in the Introducing Visualization and Animation chapter.
To control visualization settings for an entire model or machine, you need to revisit the following two dialogs. These controls allow you to set a single default color and a single default standard geometry for all the bodies in a model or in a machine.
To set a model-wide default body color and geometry, use the Visualization area of the SimMechanics node of the Configuration Parameters dialog.

To set machine-wide default body color and geometry, use the Visualization tab of that machine's Machine Environment block dialog.

You can bypass standard SimMechanics visualization by creating a virtual reality world of your own design to visualize your model's bodies. You can then build a custom interface from your model to the virtual world and animate its virtual bodies. See the final section, Visualizing with a Virtual Reality Client.
![]() | Customizing Visualization and Animation | Customizing Visualized Body Colors | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |