Straight road 3D environment
The Straight Road scene is a 3D environment of a straight four-lane divided highway. The scene is rendered using the Unreal Engine® from Epic Games®.

To simulate a driving maneuver in this scene:
Add a Simulation 3D Scene Configuration block to your Simulink® model.
In this block, set the Scene source parameter to
Default Scenes.
Set the enabled Scene name parameter to
Straight road.
The scene uses the world coordinate system to locate objects.

The active area of the scene contains the road.

This table provides the scene area corner locations in the world coordinate system. Dimensions are in m.
Locations | X (m) | Y (m) | Z (m) |
|---|---|---|---|
Scene — Top left |
|
|
|
Scene — Bottom right |
|
| 0 |
Active area — Bottom left | -122.19 |
|
|
This table provides the recommended starting location for the vehicle in the world coordinate system. Dimensions are in m and deg.
Recommended Starting Location | |||||
|---|---|---|---|---|---|
X (m) | Y (m) | Z (m) | Roll (deg) | Pitch (deg) | Yaw (deg) |
|
|
|
|
|
|
This figure and table provides the lane dimensions, in m.

Variable | Dimension (m) |
|---|---|
lw1 | 1.2 |
lw2 | 3.84 |
lw3 | 3.8 |
lw4 | 0.36 |
lw5 | 3.8 |
lw6 | 3.8 |
lw7 | 1.2 |
ml | 1.5 |
s | 3.0 |
mww | 0.13 |
mwy | 0.14 |
W | 18.0 |
The 3D visualization environment uses a world coordinate system with axes that are fixed in the inertial reference frame.

| Axis | Description |
|---|---|
| X | Forward direction of the vehicle Roll — Right-handed rotation about X-axis |
| Y | Extends to the right of the vehicle, parallel to the ground plane Pitch — Right-handed rotation about Y-axis |
| Z | Extends upwards Yaw — Left-handed rotation about Z-axis |
If you have the Vehicle Dynamics Blockset™ Interface for Unreal Engine 4 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 HwStrght.
For more details on customizing scenes, see Customize 3D Scenes for Vehicle Dynamics Simulations.