How do I modify the custom aircraft files refered to in "path to custom mesh" in the "Simulation 3D Aircraft" block

30 vues (au cours des 30 derniers jours)
Elias
Elias le 9 Nov 2024 à 16:15
Modifié(e) : Nishan Nekoo le 12 Nov 2024 à 12:58
'/MathWorksAerospaceContent/Vehicles/Aircraft/Custom/Mesh/SK_HL20.SK_HL20'
I was unable to find this referenced file path in the root or docoments folder of MATLAB, where I would I have expected it to be.
There is a path generated in the once I installed the Aerospace Blockset Interface for Unreal Engine Projects, but changing the files in that folder by Unreal Editor or otherwise had no impact on the model shown when running the Simulation 3d viewer via Simulink.

Réponses (1)

Nishan Nekoo
Nishan Nekoo le 9 Nov 2024 à 21:41
Hi Elias,
The file containing the default actors of the Simulation 3D Aircraft block that appear in the Simulation 3D Viewer via Simulink are not accessible in the root or documents folder of MATLAB and cannot be modified. However, a copy of them is available in the support package you downloaded as you have noted. Once you have modified the file, you can reference the path of this new file in the Simulation 3D Aircraft block in the 'Path to custom mesh' field once you select 'Custom' in the 'Type' field of the block.
I hope that helps!
NIshan
  6 commentaires
Elias
Elias le 12 Nov 2024 à 5:09
Hey Nishan,
This is very helpful. I was hoping to test the general process without having to prepare a fully functioning mesh because I only have a static mesh atm. I´ll try following the guide step by step then first. Ty
Nishan Nekoo
Nishan Nekoo le 12 Nov 2024 à 12:56
Modifié(e) : Nishan Nekoo le 12 Nov 2024 à 12:58
Hey Elias,
If you only have a static mesh in the form of an STL or FBX for example, you can import that using a Simulation 3D Actor block instead of using the Simulation 3D Aircraft. Simply specify the path to your source file in the Simulation 3D Actor and that should be a much easier way to get your static mesh into a scene.
Check out these examples:
One other thing to note is that if you go through the mesh preparation process, you can specify the minimum set of bones you need (just the BODY for example), and don't have to specify all of them.
Nishan

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulation dans Help Center et File Exchange

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by