File Exchange

image thumbnail

Vehicle Dynamics Blockset Interface for Unreal Engine 4 Projects

Simulink integration for Unreal Engine 4


Updated 17 Feb 2021

Vehicle Dynamics Blockset™ comes installed with prebuilt 3D scenes in which to simulate and visualize the vehicles modeled in Simulink®. These 3D scenes are visualized using the Unreal Engine® from Epic Games®. By using the Unreal® Editor, you can customize these scenes or simulate within the scenes from your own custom project.

By using the Unreal Editor and the Vehicle Dynamics Blockset Interface for Unreal Engine 4 Projects support package, you can customize these scenes. You can also use the Unreal Editor and the support package to simulate within scenes from your own custom project.

With custom scenes, you can co-simulate in both Simulink and the Unreal Editor so that you can modify your scenes between simulation runs. To customize scenes, you should be familiar with creating and modifying scenes in the Unreal Editor.

For information about installing and using the support package, see Customize 3D Scenes for Vehicle Dynamics Simulations (

Comments and Ratings (102)

Mike Sasena

Hi Quyen. Please look at the scripts in "Install Support Package and Configure Environment" ( In STEP 1, of that script, it points to a source directory that usually resolves to something like "C:\ProgramData\MATLAB\SupportPackages\R2020b\toolbox\shared\sim3dprojects\automotive". If that folder is empty, try re-installing this support package from the Add-On Manager in MATLAB.

lak-hal ouahid

sorry, type dir /s *.uplugin

Quyen Nguyen Van

When i follow the install guide in (, i can not find MathWorkSimulation.uplugin file and AutoVrtlEnv.uproject file. Just AutoVrtlEnv.exe file in C:\Program Files\MATLAB\R2020b\toolbox\shared\sim3d_projects\automotive_project\UE4\WindowsNoEditor\AutoVrtlEnv\Binaries\Win64.
What i can see behind folder C:\Program Files\MATLAB\R2020b\toolbox\shared\sim3d_projects\automotive_project\UE4\WindowsNoEditor is VehicleSimulation.exe, Engine folder, AutoVrtlEnv folder. How can i solve this problem?

Mike Sasena

Following up on Lyes message below, in case others experience the same issue. Lyes was able to get everything working by rebuilding the game with VS 2017 (they aren't sure why it didn't build the first time). If you don't have access to Visual Studio, there are sometimes ways to avoid a rebuild by modifying your .uproject file. The Unreal Editor sometimes inserts "AdditionalDependencies" in the Modules section that aren't necessarily required by your game. You can try removing them from the .uproject file and reloading your game.

lyes saidi

hello, i need to link unreal engin with matlab in order to modifie my scene. I did the installation from the matlab page and i the plugin in installed correcty. When i go to unreal engin and i unable it, my project will not run because of this error message: " Plugin "MathWorksSimulation" failed to load because module "MathWorksSimulation" could not be loaded. There may be an operating system error or the module may not be properly set up. When i try to open my "AutoVrtlEnv.uproject" from unreal engin 4.23.1 it shows me the same error message. By the way i'm using matlab 2020a and i had the message that tells me that i need to build my AutoVrtlEnv.uproject i did it but it tells me that i need to build it manually. i tried to with Virual Studio 2017 but no sucess, Can any one please ?

Mike Sasena

Benedickt, thank you for your message. Your error message might indicate that you’ve passed “MyCustomMesh” as an argument to the functions shown in “BicycleActor.h” and “BicycleActor.cpp” towards the bottom of Step 5 in the help page you linked. If so, make sure you’ve declared “MyCustomMesh” in the header file and renamed all instances of “BicycleMesh” to “MyCustomMesh” in both the header and cpp files. If this doesn’t fix your problem, please contact Tech Support so we can get more information.

Benedikt Lürbke

I'm having trouble getting my own custom actor to work. I can follow the bicycle example given here: ( and everything works fine, however if I try to do this with my own custom mesh, I can't compile the Custom Actor C++ Class from step 5 in that tutorial, because the GetMesh function returns "'MyCustomMesh': undeclared identifier".

Did I miss something while editing/exporting my skeletal mesh as fbx in Blender or while importing it in UE?

Mike Sasena

Alexandre, if you haven't already, please reach out to Tech Support ( to diagnose your problem.

Alexandre Barbier

Unreal Engine crash after enabled the plugin and restart.

Mike Sasena

The R2020b issue that Prakhar is referring to in his comment below has been fixed recently. It is included in an update to the R2020b version of this support package, which we expect will be published in January. If you need access to this fix sooner, please contact Technical Support (

Muqing Niu

Mike Sasena

Lindsay and Frank, we'll need more information in order to help you. If you've already followed the instructions about setting up the support package ( and still have problems, please contact our Technical Support team who can assist you directly (

Frank Engels

UE Keeps crashing, when I want to enable the plug-in, I am using UE4.23.1 on windows 10. I also reinstalled UE 4.23.1 and the the plugins of Mathworks, no success
By the way I am using matlab 2020b, but I think that does not matter since I do not come that far to use matlab simulink

Lindsay Couch

I have MatLab R2019b and Unreal Engine 4.19. I installed the VDBS Interface for UE 4 Projects. I tried to enable the plugin for UE and got this error: “Plugin ‘MathWorksSimulation’ failed to load because module ‘MathWorksSimulation’ could not be loaded. There may be an operating system error or the module may not be properly set up.” Any suggestions?

Mike Sasena

Thanks for the request, Frank. At present, we support up to UE 4.23. We have been updating our plugin to run on newer versions of the Unreal Engine, but we don’t have a specific date for when this will be available.

Frank Engels

Is is possible to compile the version for unreal 4.24. When I try this I get a link error to UE4Editor-MathWorksSimulation.lib.
Is it possible to compile this lib for 4.24.

And I get also these message:
LogWindows: Failed to load 'aqProf.dll' (GetLastError=126)
LogWindows: File 'aqProf.dll' does not exist
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=126)
LogWindows: File 'VtuneApi.dll' does not exist
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=126)
LogWindows: File 'VtuneApi32e.dll' does not exist

Mike Sasena

Hi Bram. There's a new page in our documentation that may help: Animate Custom Actors in the Unreal Editor ( If that doesn't answer your questions, please contact our support team (

Bram Surewaard

Where are the vehicles saved? I want to alter a vehicle to just be a simple square box, however if I change the mesh that is in the project directory next time I start the simulation the original vehicle is still there and not the altered version.

Chris Erkkinen

For step-by-step installation instructions, see the Vehicle Dynamics Blockset documentation here

Mike Sasena

This support package is not part of the Driving Scenario Designer app. I recommend you contact technical support (, and they will find the right people to help you.

成光 李

In driving scenario designer, when 3D display is performed, the error of 3D simulation engine setup error appears

成光 李

在Driving Scenario Designer中,进行3D显示时,出现3D simulation engine setup error这个错误

Mike Sasena

Hi again, Arun. We'll need more info from you to debug the error. Can you reach out to me via the Vehicle Dynamics Blockset product page ( Thanks.

arun joshi

Hi Mike, I have tried it with UE 4.23.1 with R2020a and i get this message
"The following modules are missing or built with a different engine version: AutoVrtlEnv MathworksSimulation Would you like to rebuild them now?" and it errors out at compilation and asks " Try rebuilding from source manually". I have tried it and the log shows Linker errors as shown below. Any solution to this problem?

LINK : error LNK2001: unresolved external symbol IMPLEMENT_MODULE_MathWorksSimulation
Sim3dActor.gen.cpp.obj : error LNK2019: unresolved external symbol "public: __cdecl ASim3dActor::ASim3dActor(void)" (??0ASim3dActor@@QEAA@XZ) referenced in function "void __cdecl InternalConstructor<class ASim3dActor>(class FObjectInitializer const &)" (??$InternalConstructor@VASim3dActor@@@@YAXAEBVFObjectInitializer@@@Z)
Sim3dActor.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ASim3dActor::PostInitializeComponents(void)" (?PostInitializeComponents@ASim3dActor@@UEAAXXZ)
Sim3dActor.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ASim3dActor::Sim3dInit(void)" (?Sim3dInit@ASim3dActor@@UEAAXXZ)
Sim3dActor.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ASim3dActor::Sim3dSetup(void)" (?Sim3dSetup@ASim3dActor@@UEAAXXZ)
Sim3dActor.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ASim3dActor::Tick(float)" (?Tick@ASim3dActor@@UEAAXM@Z)
Sim3dActor.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ASim3dActor::Sim3dStep(float)" (?Sim3dStep@ASim3dActor@@UEAAXM@Z)
Sim3dActor.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ASim3dActor::EndPlay(enum EEndPlayReason::Type)" (?EndPlay@ASim3dActor@@UEAAXW4Type@EEndPlayReason@@@Z)
Sim3dActor.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ASim3dActor::Sim3dRelease(void)" (?Sim3dRelease@ASim3dActor@@UEAAXXZ)
Sim3dActor.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class FString __cdecl ASim3dActor::ToString(struct FTransform const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const *)const " (?ToString@ASim3dActor@@UEBA?AVFString@@AEBUFTransform@@PEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Sim3dActor.gen.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl ASim3dActor::BeginPlay(void)" (?BeginPlay@ASim3dActor@@MEAAXXZ)

Mike Sasena

Hi Arun. Yes, the MATLAB R2020a version of the plugin will work with UE 4.23.1.

arun joshi

does the plugin work with UE 4.23.1?

浩原 倪

Thank you for your reply.

Mike Sasena

At this time, the latest version of this package (R2020a) is compatible with UE 4.23.

浩原 倪

浩原 倪

Hi,Is this package compatible with UE4.24

Mike Sasena

Hi Aditi,
We'll need more information to be able to figure out what's happening in your case. To start, please contact technical support (, and they will pull in the right people to help you. If this is an Unreal Engine build issue, you may need to reach out to Epic Games' technical support team.

Aditi Dey

I created a Unreal engine 4.19 C++ project and installed the Mathworks Interface plugin, I can see the Plugin in my Visual Studio Solution file inside "Engine folder", but i am not able to include Sim3DActor.h in any of my c++ actor class. I have also added the PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "MathWorksSimulation", "MathWorksInterfaceLibrary"}); in my build.cs file.

Mike Sasena

A note about rebuilding Unreal Engine projects. There are two ways to connect Simulink to an Unreal Engine game: 1) use the Unreal Editor with your project open, or 2) build your game into an executable. The latter requires a compiler like Visual Studio. Depending on the version of this support package you're using, you may receive a warning that you have to rebuild the game when you try to open the included project in the Unreal Editor. If you don't have a suitable compiler, you can modify the AutoVrtlEnv.uproject file to prevent it from trying to rebuild the game. Specifically, remove the section on "Modules". This should allow the Unreal Editor to open the project without a rebuild.

Mike Sasena

Hi Akshay,
The error message seems to indicate that the Unreal Engine game isn't being launched / initialized properly. Please contact technical support ( so we can get more information and find a solution.

Akshay Inde

MATLAB System block 'DLCReferenceApplication/Visualization/3D Engine/3D Engine/Simulation 3D Scene Configuration/Simulation 3D Engine' error occurred when invoking 'resetImpl' method of 'Simulation3DEngine'. The error was thrown from '
'D:\Matlab\toolbox\shared\sim3d\sim3d\+sim3d\CommandWriter.p' at line 0
'D:\Matlab\toolbox\shared\sim3dblks\sim3dblks\Simulation3DEngine.p' at line 0'.
Caused by:
3D Simulation engine interface writer setup error. Is the 3D Simulation engine running?

I cant run the simulation and the above error pops up!

Mike Sasena

Hi Ingomar,
We don't currently offer any features to do this out of the box. Our Application Engineering team may be able to find a work-around for you, depending on the specifics of your situation. If this is something you want to pursue, reach out to me via our product page (

Ingomar Schröder

Ingomar Schröder

is there a possibility to add other vehicle models? Which steps are necessary, if e.g. stl-files are available for the desired vehicle?
Many Thanks.

Mike Sasena

Hi BK,
Q1: As of R2019b, UE 4.19 is the version we support
Q2: There are step-by-step instructions on installing everything on our help page (
Q3: If you are having trouble installing the Unreal Engine, I recommend you contact Epic Games or check out their support page (

BK Choi

Hello, I am trying to install and use this but this is too complicated.
Q1 : only 4.19.2 are available?
Q2 : when installing this project file, is there any mandatory sequence for installing tools? (unreal, this project file, support package)
Q3 : My company blocked this unreal site so i am following this link "" but still hard to apply since some missing advisories.

Is there anyone who installed this correctly?

@Domagoj Majstorovic, thanks for the instructions. I tried with 4.19.2 also, but the same problem persists. (4.19.2 also not available in Epic launcher, instead I used the their GitHub source with tag 4.19.2 release and built).

Domagoj Majstorovic

@Manoj. Just install the 4.19.2 version from the Epic Launcher, and then follow the instructions from the Vehicle Dynamics Blockset User Guide (copy/paste plugin and relevant content). You cannot just double click on *.uproject to run it. Instead, you need to run a script from Matlab which will then open the uproject-file and set up everything properly.

Mike Sasena

Hi Manoj. I would recommend you contact our Technical Support team ( They can help you find a solution after getting more information about what version of the tools you're using, what OS version you have, what steps you've taken, etc.

I tried installing the Unreal v4.19 (its v4.19.2 available from their Github as Installer is not supporting older versions) and tried opening the AutoVrtlEnv.uproject. I am getting the error as "Binaries for the 'MathWorksSimulation' plugin are missing or incompatible with the current engine version. Would you like to disable it? You will no longer be able to open assets that were created with it." If I select yes, then the mathworks plugin is disabled, If I select no, then a message "Plugin 'MathWorksSimulation' failed to load because module 'MathWorksSimulation' could not be found. Please ensure the plugin is properly installed, otherwise consider disabling the plugin for this project".

Also, if I try opening with the latest UE_Editor (v4.24), then error shows that the plugin version is not compatible and try rebuilding from source. Is it possible to provide the plugin matching to the latest UE version or the source for rebuilding.

Om Prakash Kukunuru

calia qi

When I created a new C ++ UE4 file and selected the matlab plug-in enable, the following problems occurred. There is less information in this regard, thank you.(plugin MathWorksSimulation failed to load because module mathworkssimulation could not be loaded.There may be an operation system error or the moudles may not be properly set up)

Mike Sasena

Hi again, Calia. I would recommend you contact our Technical Support team ( They can get more information about what you're trying to accomplish and help you find a solution.

calia qi

I encountered a problem, I know that AutoVrtlEnv.uproject has an interface vehicle with simulink. I have a uproject file myself, how could I find the simvehicle module in my own uproject file. In other words, how to build the unreal model into the simvehicle.

Mike Sasena

Hi Calia,

Please check out these instructions:

It walks you through the process of installing this support package and copying the necessary files (including the AutoVrtlEnv.uproject file) into the folders you'll need to begin testing.

calia qi

Hi,Where is the AutoVrtlEnv.uproject ? I can only find the AutoVrtlEnv.exe in matlab folder. Thanks

Darya Prokusheva

Sam Reinsel

Hi Ben, James,

Currently the only supported version of Unreal is 4.19, so you would not be able to use the plugin in UE4.23.

I've actually encountered this "Failed to compile" on a PC that only had Visual Studio 2015 installed. In my case, The build log for the project (located at "C:\Local\AutoVrtlEnv\Saved\Logs\AutoVrtlEnv.log") included a line specifically calling out that VS2017 was required to build this project (it may not be the same in your case, but the build log may help identify the issue). This seems to be a recent change to Unreal Engine itself.

In my case, installing VS2017 on my machine and executing step 5 again successfully compiled and opened. So that may be a starting point on resolving the issue.

James Lamprecht

Hi there,
I have followed the installation steps up until #5, at which point I receive an error message stating that "AutoVrtlEnv could not be compiled".
I am using R2019b and Unreal Engine v4.23.

Is this down to a version issue, or is it the same problem as Ben described below?

Many thanks

ben sullivan


I am having an issue with step 5 in "Set Up Environment and Open Unreal Editor" in the set up instructions where UE4Editor-AutoVrtlEnv.dll is missing. Then trying to rebuild I receive "AutoVrtlEnv" could not be compiled.

I have installed R2019b, update 1 and Unreal Engine ver 4.19.2.

Has anyone else had this issue? Any advice?


Evan Kurschner

It would be great if the documentation for these blocks had their respective units specified in them (i.e. does the rotation port of the "Actor Transform Set" block take radians or degrees?)

Mike Sasena

Hi Patrick,
The suggested fixes have been moved into the next MATLAB Update, which is expected to come out soon. You can find more information on how to check for the latest updates here:

Patrick Irvine

Hi there,
I'm encountering the same problem as Wang wrote below. I have visited Bug Report 2075910 and see there are no suggested fixes yet.
Can anyone advise me if the full error message in due to the one windows update issue, or if I have multiples issues stopping running this example?

MATLAB System block 'SimpleScenarioAndSensorModel3DSimulation/Ego Vehicle/PlantParser/Passenger Vehicle Ray Trace Set/Simulation
3D Actor Ray Trace Read' error occurred when invoking 'setupImpl' method of 'Simulation3DActorRayTraceRead'. The error was thrown
from '
'C:\Program Files\MATLAB\R2019b\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0
'C:\Program Files\MATLAB\R2019b\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0
'C:\Program Files\MATLAB\R2019b\toolbox\shared\sim3dblks\sim3dblks\Simulation3DActor.p' at line 0
'C:\Program Files\MATLAB\R2019b\toolbox\shared\sim3dblks\sim3dblks\Simulation3DActorRayTraceRead.p' at line 0
'C:\Program Files\MATLAB\R2019b\examples\driving\main\SimulateASimpleDrivingScenarioAndSensorIn3DEnvironmentExample.m' at line
Caused by:
Error using SimulateASimpleDrivingScenarioAndSensorIn3DEnvironmentExample (line 159)
Invalid default value for property 'engine' in class 'sim3d.Engine':
No method 'Start' with matching signature found for class 'System.Diagnostics.Process'.

Martin Mochnacky

Igor Klimchynski

Hello All,

The error message “No method 'Start' with matching signature found for class 'System.Diagnostics.Process'.” is related to a Windows update that includes .Net 4.8 (528049).
Please see Bug Report 2075910 for a solution:


I encountered a problem. Any suggestions

MATLAB System block 'SCRReferenceApplication/Camera Actor Transform Set /Simulation 3D Actor Transform Write' error occurred when invoking 'setupImpl' method of 'Simulation3DActorTransformWrite'. The error was thrown from '
'C:\MATLAB\R2019a\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0
'C:\MATLAB\R2019a\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0
'C:\MATLAB\R2019a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DActor.p' at line 0
'C:\MATLAB\R2019a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DActorTransformWrite.p' at line 0'.
Caused by:
Invalid default value for property 'engine' in class 'sim3d.Engine':
No method 'Start' with matching signature found for class 'System.Diagnostics.Process'.

Dmitry Vasiliev

Nevermind, found the problem. This plugin is great tho

Yiran Zhang

William Dolke

yixiao wang

Mike Sasena

Hi Sampath. Thanks for your feedback. The purpose of this support package isn't to provide a generic implementation. It is an add-on that provides extra content and customization capabilities specifically for MathWorks' automotive customers. Feel free to reach me through our product page ( if you'd like to discuss your applications / requirements in more detail.


Why is this a part of the vehicle dyanmics blockset? Unreal affords general application for visualization - so Simulink (and Mathworks) should provide a generic implementation to ferry data back and forth. Right now, the way I see, its tied down to having license for particular blockset.

Mike Sasena

Hi Sen,
We migrated the plugin from the Epic Games Marketplace into this support package. Everything you need should be available from this download. We just updated this download today (May 22), so you could try updating. If that version doesn't work, please reach out to me via our product page (, and I can help troubleshoot.

Sen Yang

Hi Mike,
I downloaded this project and installed unreal engine 4.19.
However, when I tried to open AutoVrtlEnv.uproject, a dialog popped up which asks whether to open Epic Games Marketplace to download MathWorksSimulation plugin.
I opened Epic Games Marketplace and searched key word "MathWorks", and I found "MathWorks Interface" code plugin, but I could not find where to download this plugin.
Are "MathWorks Interface" and "MathWorksSimulation" the same?

I also tried to open AutoVrtlEnv.uproject without "MathWorksSimulation" plugin, and error happened, which says "CreateExport: Failed to load Outer for resource 'AMathWorksPassengerVehicleMesh': Sim3dPassVeh /Game/Maps/HwStrght.HwStrght:PersistentLevel.Sim3dPassVeh_1" (and Veh2).
I guess this is because I haven't had MathWorksSimulation plugin included.

Could you please tell me how to download and use the MathWorksSimulation plugin?

Thank you very much!

Mike Sasena

Hi Yu. Please refer to the AVE_README.pdf that comes with this support package to determine which version of Unreal Engine is supported, as this will evolve over time. Note that the R2019a version of the documentation only says that we use 4.19 (it does not say 4.19.0 specifically). I've used 4.19.2 successfully, for example.

Yu Wang

guess do use version 4.19.0 to run the simulation. I dont know why epic games makes many modifications between each version.

Mike Sasena

Hi Tim,
We'd be happy to help you get this set up, but we'll need more information. Please use the button in the "Have Questions?" section of the Vehicle Dynamics Blockset product page to contact us (link below). We can then work with you directly to get this working.

Tim Ellershaw


I've tried following both method instructions in AVE_README.pdf, and tried all the related examples, but can't get anywhere.

Always get this error:
MATLAB System block 'DLCReferenceApplication/Visualization/3D Engine/3D Engine/Simulation 3D Engine 1/Simulation 3D Engine' error occurred when invoking 'setupImpl' method of 'Simulation3DEngine'. The error was thrown from '
'C:\Program Files\MATLAB\R2018b\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0
'C:\Program Files\MATLAB\R2018b\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0
'C:\Program Files\MATLAB\R2018b\toolbox\shared\sim3d\sim3d\+sim3d\Project.p' at line 0
'C:\Program Files\MATLAB\R2018b\toolbox\shared\sim3dblks\sim3dblks\Simulation3DEngine.p' at line 0'.
Caused by:
Invalid default value for property 'engine' in class 'sim3d.Engine':
3D simulation engine interface setup error (1). Please check the toolbox preferences and ini-file.
Any Suggestions ?
Thank you.

Victor Sim

Hi Mike,
I'm getting this message when running the script for Method B:
Error using sim3d.Engine/setup
Invalid default value for property 'engine' in class 'sim3d.Engine':
Invalid MEX-file 'C:\Program Files\MATLAB\R2018b\toolbox\shared\sim3d\sim3d\SetupSimulation3DInterface.mexw64':
The specified module could not be found.

Do you know how to fix this?

Kevin McCormack

Sam Reinsel

Borison ningthoujam

Could you please tell me how to use this package.I'm a beginner

Mike Sasena

Shahzeb, as mentioned in the AVE_README.pdf, this support package was designed to work with Unreal Engine version 4.19. Please install that specific version of Unreal and try again. If you still have problems, you can contact us through the product page at

Shahzeb Ansari

Hi I have installed Unreal Engine 4.21.1 and I think the Method b is not running and there is compiling error. I don't know how to work with co-simulation as I am new to it.
Can anybody please provide me the startup link or document?

Mike Sasena

One additional piece of information. Make sure that you set the initial position for the Simulation 3D Actor Set block ( to be the same as initial position in the Vehicle Body block mentioned below in my last post. The former specifies the first frame when we initialize the 3D engine. The latter sets the starting position of the vehicle once the simulation begins. Both blocks should reference the same value.

Mike Sasena

Tao, the initial position of the vehicle is set within the reference model for the Vehicle Body (3DOF or 6DOF) block. See in the documentation. if you want help with your specific application, you can contact us through the product page at

tao zhong

Hi, changing the initial value of Vehicle Transform Set block doesn't work for me, the car always starts from the same place. How should I change the starting place? Thanks.

Chris Erkkinen

Starting in R2018b, the Vehicle Dynamics Blockset product documentation includes specific information about the scenes, including object locations. See in the documentation

Johannes Betz

Peter Corke

It would be really great to have a Mac version. Unreal engine is well supported for Mac, pity that this tool doesn't allow it.

Mike Sasena

Carlos. Thank you for your interest, but we do not have any announcements on Mac-supported games at this time.

Carlos Moreno

Any news on when will the games be compiled for Mac?

Mike Sasena

Sudhandshu, Method A in the AVE_README.pdf specifies the path to AutoVrtlEnv.exe using the variable “src_root”. At the end of the code snippet, you can use the command "setenv('PATH', winPath)" to update the Windows path. This will allow MATLAB to find AutoVrtlEnv.exe when it tries to launch the game.

As for your question about “Vehicle Dynamics Blockset doesn’t download on R2018a”, can you please be more specific? What is it that you’re trying to do and what error message are you seeing? If you're starting the download from FileExchange, it may use the latest MATLAB version. You can instead start the download from R2018a's "Add-On Explorer" to ensure you get that specific version.

Sudhanshu Chouhan

I am using 2018a version, Vehicle Dynamics Blockset doesn't download on that, anyone knows why?

Sudhanshu Chouhan

I don't find the instructions very clear, can I get someone to help me? For example, in Method A: Setup MathWorks Environment for Using AutoVrtlEnv.exe: I do not know what path to add. Also, where can I find AutoVrtlEnv.exe on my pc?

Mike Sasena

Yufei, the current implementation is limited to exchanging data with specific objects defined in the scenes provided with Vehicle Dynamics Blockset. We have received similar requests for interfacing with user-defined objects, but cannot announce when such a feature would become available.

Yufei Quek

Hi, is it possible to configure the interface between Simulink and Unreal Engine? For example, to obtain transformation data from a custom object in UE4 instead of using the provided Sim 3D objects?

Mike Sasena

Christopher, apologies for the inconvenience. There was a slight delay in publishing our materials on the Epic Games Marketplace. The files should now be available at this link:

Christopher Nash

The MathWorks Simulation Plugin doesn't seem to be available in the Unreal marketplace. Is there anywhere else we can get this from?


Looking forward to having Vehicle Dynamics Blockset work on Linux with the same featureset as on Windows.





Vincent Hu

Mike Sasena

Karan, thank you for your interest. We do plan to compile the games for Linux and Mac, but I don’t have a specific date for when these will be available.

Karan Jhaveri

Is it possible for you guys (Mathworks) to recompile this game from unreal editor for Linux? Or does it have any components that only work on windows?

MATLAB Release Compatibility
Created with R2018a
Compatible with R2018a to R2020b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!