Main Content

Unreal Engine Scenario Applications

Build and interact with virtual world

The Simulink® 3D Animation™ provides functionality to build, visualize, and interact with virtual world and perform agent-based modeling by using the Unreal Engine® environment.

  • Access advanced features available in the Unreal Engine, such as collision detection, and the physics engine, and set lighting and atmospheric conditions through the MATLAB® and Simulink interfaces.

  • Algorithmically build virtual worlds using 3D assets, in different supported file formats,including FBX, STL, and URDF.

  • Use the MATLAB API and Simulink blocks to control and access all objects in the virtual scene and set visual, spatial, and other properties. You can also use this API to control other functionality, such as navigation behavior, collision events, and the video output of a camera or depth sensor attached to the object.

  • Create or delete objects as you work and independently control object instances.

Empty scene showing coordinate system and the sun


sim3d.ActorObject used to define actors in the virtual world (Since R2022b)
sim3d.WorldObject used to define virtual world in Unreal Engine environment (Since R2022b)
sim3d.sensors.IdealCameraCapture an image and make it available in MATLAB (Since R2022b)
sim3d.sensors.MainCameraDefine perspective in Unreal executable window (Since R2022b)


expand all

copyCopy all properties from another actor (Since R2022b)
propagatePropagate value of selected property to actor and its children (Since R2022b)
gatherReturn values of selected property from all objects in selected branch (Since R2022b)
findByFind all actors that match specified criteria (Since R2022b)
createMeshCreate new mesh with specified values (Since R2022b)
addMeshAppend mesh on top of current mesh (Since R2022b)
loadLoad or import 3D file (Since R2022b)
saveSave actor and children to a MAT file (Since R2022b)
createShapeCreate geometry for basic primitives (Since R2022b)
addAdd actor to virtual world (Since R2022b)
runRun cosimulation in virtual reality world (Since R2022b)
createViewportCreate viewport for world (Since R2022b)
removeRemove actor added to world or remove all actors in world (Since R2023a)
readReturn image captured with camera (Since R2022b)


Simulation 3D ActorDefine actors in Unreal Engine viewer (Since R2022b)
Simulation 3D Actor Transform GetGet actor translation, rotation, scale (Since R2022b)
Simulation 3D Actor Transform SetSet actor translation, rotation, scale (Since R2022b)
Simulation 3D Camera GetCamera image (Since R2022b)
Simulation 3D Scene ConfigurationScene configuration for 3D simulation environment (Since R2022b)


Empty SceneEmpty environment


Examples and How To