Detecting collisions of UAVs in the Unreal Editor
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
Nishan Nekoo
2024년 6월 25일
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
Nishan Nekoo
2024년 7월 8일
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.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!