Assertion failed: VehMesh != nullptr UE-AutoVrtlEnv
Mostrar comentarios más antiguos
I was trying to simulate theVTOLTiltrotor in Unreal Engine. Whenever I tried to run the simualtion using Default Scenes in Simulation 3D Engine block I am facing this error
Assertion failed: VehMesh != nullptr
[File:C:\TEMP\Bsim3d_2535942_3008\AutoVrtlEnv\Plugins\MathWorksSimulation\Source\MathWorksSimulation\Private\Sim3dVeh.cpp] [Line:
254]
Failed to load
SkeletalMesh'/Game/Maps/VTOLDEMO/VTOLAsset.VTOLAsset'. Please
specify a valid mesh path.
I tried everything, I followed all the steps made sure the verison of Matlab and Unreal Engine are compatible with each other. I am just trying to use the default packages without any modifications to the code.
I tried uninstalling and installing both matlab and unreal engine also tried in another system with fresh installation, even tried running both Matlab and Unreal Engine with admin privileges.


Respuestas (1)
Nishan Nekoo
el 22 de Abr. de 2025
0 votos
If its R2024b, did you follow all the instructions on this page? https://www.mathworks.com/help/uav/ug/visualize-vtol-flight-mission-over-urban-environment.html
You will need to manually import the VTOL Vehicle into Unreal Engine to use it in Unreal Engine Scenes. In particular, this instruction on modifying the path in the VTOL block is important:
To copy the reference path to this asset, right-click the VTOLAsset skeletal mesh object in Content Browser pane and click Copy Reference.
In the Simulation 3D UAV Vehicle block of the Photorealistic subsystem, set the Type parameter to Custom and then set the Path to custom mesh parameter to the reference path.
Hope that helps,
Nishan
9 comentarios
Chaithanya Chowdhary
el 22 de Abr. de 2025
Nishan Nekoo
el 22 de Abr. de 2025
Hey @Chaithanya Chowdhary sorry to hear that you are running into this crash. Just to verify, I tried replicating the instructions from that link on my end and was able to simulate without any errors. There might be an issue with your environment setup.
sim3d.utils.copyExampleSim3dProject("C:/project")
You might need to first delete the folder "MathWorks" at C:\Program Files\Epic Games\UE_5.1\Engine\Plugins\Marketplace
Then try running a co-simulation with a new Simulink model with only the Simulation 3D Scene Configuration block - with the Scene Source set to Unreal Editor and the path specified to the project you just created.
Nishan
Chaithanya Chowdhary
el 22 de Abr. de 2025
Editada: Chaithanya Chowdhary
el 22 de Abr. de 2025
Chaithanya Chowdhary
el 22 de Abr. de 2025
Editada: Chaithanya Chowdhary
el 22 de Abr. de 2025
Nishan Nekoo
el 22 de Abr. de 2025
Is this the same error when there is only one block in the model - the Simulation 3D Scene Configuration block? Can you send me a screenshot of the model with Unreal Editor side by side with the error/crash.
Can you provide a screenshot of the MathWorks folder? I'd like to see what plugins you have downloaded.
Nishan
Chaithanya Chowdhary
el 23 de Abr. de 2025
Nishan Nekoo
el 23 de Abr. de 2025
Hi @Chaithanya Chowdhary, can you show me where the VTOLAsset is in your Content Browser? For example, mine is located here: 

The instructions in the documentation ask to create an EVTOL folder, and add the asset there. Then right click on the asset and use the reference path in the Simulink block. It appears to me that your reference path 'SkeletalMesh'/Game/Maps/VTOLDEMO/VTOLAsset.VTOLAsset' is the default reference path and does not point to the EVTOL mesh that you imported yourself.
Unfortunately, if you are still running into issues after fixing the above, please reach out to support@mathworks.com for further assistance.
Chaithanya Chowdhary
el 23 de Abr. de 2025
Chaithanya Chowdhary
el 23 de Abr. de 2025
Categorías
Más información sobre Scenario Simulation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!







