Main Content

Curved Road

Curved road 3D environment

Since R2024a

Description

The Curved Road scene is a 3D environment of a curved highway loop. The scene is created using RoadRunner.

For information about additional scenes, see 3D Scenes for Simulation in Unreal Engine Environment.

Curved road scene with red vehicle

Setup

To simulate a driving maneuver in the Curved road scene using Simulink®:

  1. Add a Simulation 3D Scene Configuration block to your Simulink model.

  2. In this block, set the Scene source parameter to Default Scenes.

  3. View the currently available scenes in the Scene name parameter. If the scene is not available, you must install it.

  4. To install the scene:

    1. Click Install.

    2. In the Add-on installer dialog box, select the scene.

    3. Click Next and follow the prompts.

    MATLAB® restarts after the scene is installed.

  5. Select the scene name from the Scene name parameter.

To simulate in the Curved road scene using MATLAB:

  1. Download and install the scene using the Install option in the Simulation 3D Scene Configuration block.

  2. Create a sim3d.World object.

  3. Set the Scene argument to the scene name.

Layout

The scene uses the world coordinate system to locate objects.

Top-down view of Curved Road scene with recommended vehicle starting location marked

Tips

  • If you have the Simulink 3D Animation™ Interface for Unreal Engine® Projects support package, then you can modify this scene. In the Unreal Engine project file that comes with the support package, this scene is named HwCurve.

    For more details on customizing scenes, see Customize Scenes in Unreal Engine for 3D Simulations.

Version History

Introduced in R2024a

expand all