Borrar filtros
Borrar filtros

Detecting collisions of UAVs in the Unreal Editor

27 visualizaciones (últimos 30 días)
匠亨 前島
匠亨 前島 el 25 de Jun. de 2024 a las 9:22
Comentada: Nishan Nekoo el 8 de Jul. de 2024 a las 11:37
I am running a simulation on the Unreal Editor using the UAV Toolbox Interface for Unreal Engine® Projects and Simulink. However, I am having trouble because I cannot obtain information on whether a UAV on the Unreal Editor collides with an object on the map. If you know any solutions, please let me know.

Respuesta aceptada

Nishan Nekoo
Nishan Nekoo el 25 de Jun. de 2024 a las 13:41
Hello! Are you using a Simulation 3D UAV Vehicle or is it a custom CAD model? Have you considered using the Simulation 3D Actor to bring your UAV into a 3D simulation? Here is a relevant example to show this may be done:
Once you are using the Simulation 3D Actor, you should be able to enable collision or hit events and have callbacks for each type of event:
If it is strictly necessary to use the Unreal Editor to bring in your UAV, then perhaps the Unreal Engine documentation might be useful, depending on which version of Unreal Engine/MATLAB you are using: https://docs.unrealengine.com/4.27/en-US/WorkingWithContent/Types/StaticMeshes/HowTo/SettingCollision/
Have you tried the above? What issues are you running into specifically?
Nishan
  2 comentarios
匠亨 前島
匠亨 前島 el 4 de Jul. de 2024 a las 7:23
Editada: 匠亨 前島 el 4 de Jul. de 2024 a las 7:54
Thank you for your reply. I have read the documentation and have been working on solving the problem, but I have not yet been able to solve it.
I installed the simulated 3D actor UAV and tried various things, but I couldn't generate a hit event. Based on the event callback documentation, I added phisics and hiteventenabled to the UAV's body. In that case, I was able to confirm the hit event when I checked simulate phisics for the body in the unreal editor, but the UAV disintegrated in the editor and the body flew away with unexpected behavior. Is it possible to fix the body and propellers and get a hit event?
Nishan Nekoo
Nishan Nekoo el 8 de Jul. de 2024 a las 11:37
Hello, instead of enabling the Hit Event, perhaps consider enabling the Overlap Event instead. I believe this should give you information on when the body collides without any effect on the body itself.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by