Main Content

3D Engine

Configure scenes in reference applications

    Description

    The 3D Engine block implements the 3D simulation environment. Vehicle Dynamics Blockset™ integrates the 3D simulation environment with Simulink® so that you can query the world around the vehicle for virtually testing perception, control, and planning algorithms.

    To position the vehicle in the scene:

    1. Select the position initialization method:

      • Recommended for scene — Set the initial vehicle position to values recommended for the scene

      • User-specified — Set your own initial vehicle position

    2. Click Update the model workspaces with the initial values to overwrite the initial vehicle position in the model workspaces with the applied values.

    Examples

    Ports

    Input

    expand all

    Bus containing vehicle feedback signals, including velocity, acceleration, and steering wheel torque.

    Parameters

    expand all

    3D Engine

    Enable 3D visualization.

    Specify the name of the 3D scene.

    Graphics frame rate, in s. The graphics frame rate is the inverse of the sample time.

    Use vehicle positions that are recommended for the scene.

    Specify to set your own initial vehicle position values.

    Initial vehicle CG position along the earth-fixed X-axis, in m.

    Initial vehicle CG position along the earth-fixed Y-axis, in m.

    Initial vehicle CG position along the earth-fixed Z-axis, in m.

    Rotation of the vehicle-fixed frame about the earth-fixed X-axis (roll), in rad.

    Rotation of the vehicle-fixed frame about the earth-fixed Y-axis (pitch), in rad.

    Rotation of the vehicle-fixed frame about the earth-fixed Z-axis (yaw), in rad.

    Version History

    Introduced in R2019a