Main Content

6DoF Animation

Create 3-D MATLAB Graphics animation of six-degrees-of-freedom object

  • Library:
  • Aerospace Blockset / Animation / MATLAB-Based Animation

  • 6DoF Animation block

Description

The 6DoF Animation block displays a 3-D animated view of a six-degrees-of-freedom (6DoF) vehicle, its trajectory, and its target using MATLAB® Graphics.

The 6DoF Animation block uses the input values and the block parameters to create and display the animation. The Axes limits, Static object position, and Position of camera parameters have the same units of length as the input parameters.

This block does not produce deployable code, but you can use it with Simulink® Coder™ external mode as a SimViewingDevice.

Ports

Input

expand all

Altitude, the crossrange position, and the downrange position of the vehicle in Earth coordinates, specified as a three-element vector.

Data Types: double

Euler angles of the vehicle, specified as a three-element vector.

Data Types: double

Parameters

expand all

Three-dimensional space to be viewed, specified as a six-element vector.

Programmatic Use

Block Parameter: u1
Type: character vector
Values: six-element vector
Default: '[0 4000 -2000 2000 -5000 -3000]'

Time interval at which the animation is redrawn, specified as a double scalar.

Programmatic Use

Block Parameter: u2
Type: character vector
Values: double scalar
Default: '0.1'

Scale factor to adjust the size of the vehicle and target, specified as a double scalar.

Programmatic Use

Block Parameter: u3
Type: character vector
Values: double scalar
Default: '1.0'

Altitude, crossrange position, and downrange position of the target, specified as three-element vector.

Programmatic Use

Block Parameter: u4
Type: character vector
Values: three-element vector
Default: '[4000 0 -5000]'

Preset entrance views, specified as:

  • Fixed position

  • Cockpit

  • Fly alongside

These preset views are specified by MATLAB Graphics parameters CameraTarget and CameraUpVector for the figure axes.

Tip

To customize the position and field of view for the selected view, use the Position of camera and View angle parameters.

Programmatic Use

Block Parameter: u5
Type: character vector
Values: Fixed position | Cockpit | Fly alongside
Default: 'Fixed position'

Camera position, specified using the MATLAB Graphics parameter CameraPosition for the figure axes as a three-element vector. Used in all cases except for when Enter view is set to Cockpit.

Programmatic Use

Block Parameter: u6
Type: character vector
Values: three-element vector
Default: '[2000 500 -3150]'

View angle for the MATLAB Graphics parameter CameraViewAngle for the figure axes in degrees, specified as a double scalar.

Programmatic Use

Block Parameter: u7
Type: character vector
Values: double scalar
Default: '10'

Whether to display the animation during the simulation. If not selected, the animation is not displayed.

Programmatic Use

Block Parameter: u8
Type: character vector
Values: on | off
Default: 'on'

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced before R2006a