How can I control the which car is controlled in the Unreal Editor in MATLAB R2018a

4 views (last 30 days)
I am trying to get started with using the unreal engine for 3d visualization and would like to clarify if it is possible to control more than 2 cars in the unreal engine simulation using the editor mode. In addition to this I would like more detail on how I can specify which car in the unreal engine is controlled by a specific control signal.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 May 2019
Follow these steps to add a new controllable vehicle.
1) Add a “sim 3d pass veh” actor in the editor mode.
2) Click on the added actor to highlight it in World Outliner section of the editor and search of “tag” as shown in screen shot 1 and 2.
3) Click on the + sign shown in screen shot 2.
4) Add a name tag for the vehicle as shown in screen shot 3. Generally we follow SimulinkVehicle followed by any numeric value.
5) In Simulink model set Actor tag for “Simulation 3d Actor Transform Set” block to the same name that is added in editor.
This should control the newly added vehicle in the editor mode. To change the camera view while simulation is running, keep the editor window in focus and hit “Tab” key. That will switch between camera views when there are multiple vehicles.

More Answers (0)

Categories

Find more on Vehicle Scenarios in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!