3D Environment
The 3D environment is a digital space designed to simulate real-world phenomena to explore and manipulate objects within the environment. You can use the MATLAB® or Simulink® interface to create, view, and interact with the 3D environment.
Visualize the 3D environment using the Unreal Engine from Epic Games® for photorealistic rendering. You can access advanced features, such as lighting and atmospheric conditions.
Programmatically create and view a 3D environment using MATLAB or a Simulink model.
Use MATLAB and Simulink to communicate with the 3D environment during run-time through the co-simulation framework with the Unreal Engine.
Import custom scenes and scenarios designed and built in RoadRunner and visualize using the Unreal Engine environment.
View the 3D environment in the Simulation 3D Viewer using the prebuilt scenes and you can navigate in the 3D environment using keyboard shortcuts and mouse control.
Classes
sim3d.World | Create 3D environment in Unreal Engine (Since R2022b) |
Functions
add | Add actor to 3D environment (Since R2022b) |
createViewport | Create viewport for world (Since R2022b) |
run | Run co-simulation with the 3D simulation engine (Since R2022b) |
pause | Pause co-simulation with 3D simulation engine (Since R2024a) |
resume | Resume co-simulation with 3D simulation engine (Since R2024a) |
remove | Remove actor added to world or remove all actors in world (Since R2023a) |
load | Load 3D models or actors into world object (Since R2024a) |
save | Save world object to MAT file (Since R2024a) |
Blocks
Simulation 3D Scene Configuration | Scene configuration for 3D simulation environment (Since R2022b) |
Scenes
Empty Scene | Empty environment |
Curved Road | Curved road 3D environment |
Straight Road | Straight road 3D environment |
Topics
Simulation Basics
- Create 3D Simulations in Unreal Engine Environment
Use MATLAB or Simulink to create, view, and interact with 3D simulations and access Unreal Engine features. - Interact with 3D Simulation Environment
Control actors using the Simulation 3D Viewer interface, and navigate in the 3D environment during simulation.
Visualize Scenario
- Simulate RoadRunner Scenarios with Actors Modeled in MATLAB and View in Unreal Engine 3D Viewer (Automated Driving Toolbox)
Define custom actor behavior and visualize RoadRunner simulations in 3D usingsim3d.scenario.ActorBehavior
object. - Create and Use an Oval Track (Vehicle Dynamics Blockset)
Create an oval track with RoadRunner and use it in a Vehicle Dynamics Blockset™ simulation that co-simulates with Unreal®.