Integrate simulink model in Unity 3D

9 views (last 30 days)
Arpeet Sojitra
Arpeet Sojitra on 31 May 2021
Answered: Zhang wen on 28 Feb 2022
Hallo all,
I have Vehicle model in MATLAB/SIMULINK with .mat file. which is perfectly working. but my task is to transfer this model into Unity3D/ C#. Is it possible to transfer the model in Unity3D and recoding in C#. I am little bit confused regarding this problem because I have seen so many videos about Unity3D. If I have to write C# file in Unity then I need vehicle model in Unity3D. Is it any possibility to write a script in C# and connect my vehicle model which I have in SIMULINK.
Thanks in advance.

Answers (1)

Zhang wen
Zhang wen on 28 Feb 2022
i also meet this problem, my solution is transfer data between unity3d and simulink by udp, so you can send the simulated data to unity instead of integrate simulink model in unity3d, hope this solution can help you

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!