| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink 3D Animation |
| Contents | Index |
| Learn more about Simulink 3D Animation |
Simulink 3D Animation
Trace the trajectory of an object in the associated virtual scene.
This block creates marker nodes in regular time steps either as children of the specified parent node (Parent node parameter), or at the top level of scene hierarchy (root).
You can specify one of three types of markers:
General shape
Line segments connecting object positions in every time step
Axis-aligned triads useful for orienting the trajectory in the 3–D space
Object position input must correspond to the placement of the object in the scene hierarchy. If the traced object resides as a child of a parent object, define the parent object DEF name in the Parent node field. If the traced object resides at the top of the scene hierarchy (its position is defined in global scene coordinates), leave this field empty.
The first block input vector determines the position of the marker. The second block input (if enabled by the Marker color selection parameter) represents the marker color.

Associated VRML file — VRML file name specifying the associated virtual world.
Parent node (leave empty for root) — Specify the location of the traced object in the scene hierarchy.
Marker shape — From the list, select one of:
None
Tetrahedron
Pyramid
Box
Octahedron
Sphere
Connect markers with line segments — Select this check box to connect the traced object path with lines.
Place a triad at each marker position — Select this check box to place a triad at each marker position. A triad helps you orient the object trajectory in the x-y-z plane.
Marker scale — Specify a three-component vector that defines the scaling of predefined marker shapes and triads. This parameter allows to accommodate for scenes of various sizes.
Marker color selection — From the list, select:
Block input — Disables Marker color parameter and relies on the second block input to define the marker color. Selecting this option enables the second block input, to which you can connect a signal for the marker color.
Selected in block mask from color list — Enables Marker color parameter to accept one of a list of colors for the marker.
Defined in block mask as RGB values — Enables Marker color parameter to accept RGB values for the marker color.
Marker color — If Marker color selection is Selected in block mask from color list, select the color from the list: yellow, magenta, cyan, red, green, blue, white, black
If Marker color selection is Defined in block mask as RGB values, enter RGB values for the marker color.
Sample time — Enter the sample time or -1 for inherited sample time.
Ensure that a viewer window is open during simulation — Select this check box to ensure that the Simulink 3D Animation viewer is open during simulation.
![]() | VR To Video | Function Reference | ![]() |

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