How to simulate a custom VTOL using unreal executable or default scenario without opening unreal editor

4 views (last 30 days)
Assertion failed: VehMesh != nullptr [File:C:\TEMP\Bsim3d_2928557_7400\AutoVrtlEnv\Plugins\MathWorksSimulation\Source\MathWorksSimulation\Private\Sim3dVeh.cpp] [Line: 254]
Failed to load /Users/syste/MATLAB/Projects/scout/AutoVrtlEnv/Content/EVTOL/pelican-quad-fixed.uasset. Please specify a valid mesh path.
I get this error when i try to simulate with default scenario or unreal executable

Answers (1)

Deepak
Deepak on 24 Jun 2025
The error suggests that Simulink can not find your custom VTOL mesh during simulation. This usually happens if the mesh path in the Simulation 3D UAV Vehicle block is incorrect or if the asset is not included in the packaged Unreal executable.
To fix it, set the vehicle type to Custom and make sure the Path to custom mesh is a valid Unreal asset reference, something like /Game/EVTOL/pelican-quad-fixed.pelican-quad-fixed (not a file path or .uasset name).
If you are running the simulation using a packaged Unreal executable or a default scenario (without opening the Unreal Editor), ensure your VTOL mesh is properly imported and included in the build. In the Unreal Editor, go to Project Settings > Packaging > Directories to Cook and add the folder containing your mesh (e.g. /EVTOL). Note that default scenes and executables like VehicleSimulation.exe do not include custom assets, you will need a custom packaged executable with your VTOL mesh for it to show up in simulation.
Please find attached the relevant documentation for reference:
I hope this helps.

Products


Release

R2025a

Community Treasure Hunt

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

Start Hunting!