Main Content

Sim3dSetup

C++ method that sets up actor inUnreal Engine3D simulation

Description

example

The C++ methodvoid ASetGetActorLocation::Sim3dSetup()sets up an actor in the Unreal Engine®3D simulation environment. The Unreal EngineAActor::BeginPlayclass calls theSim3dSetupmethod every frame.

Examples

collapse all

voidASetGetActorLocation::Sim3dSetup(){ Super::Sim3dSetup();if(Tags.Num() != 0) { FStringtagName=Tags.Top().ToString(); FStringMessageReaderTag=tagName; MessageReaderTag.Append(TEXT("SimulinkMessage_OUT")); // a messagefrom万博1manbetxmodelMessageReader = StartSimulation3DMessageReader (TCHAR_TO_ANSI(*MessageReaderTag), MAX_MESSAGE_SIZE); FStringMessageWriterTag=tagName; MessageWriterTag.Append(TEXT("SimulinkMessage_IN")); // a messageto万博1manbetxmodelMessageWriter = StartSimulation3DMessageWriter (TCHAR_TO_ANSI(*MessageWriterTag) ), MAX_MESSAGE_SIZE); } }

Version History

介绍了R2020b