ヘルプ センターヘルプ センター
Unreal Engine 3D シミュレーションでアクターを設定する C++ メソッド
R2020b 以降
void ASetGetActorLocation::Sim3dSetup()
例
C++ メソッド void ASetGetActorLocation::Sim3dSetup() は、Unreal Engine® 3D シミュレーション環境でアクターを設定します。Sim3dSetup メソッドは、各フレームで Unreal Engine AActor::BeginPlay クラスによって呼び出されます。
Sim3dSetup
AActor::BeginPlay
すべて折りたたむ
void ASetGetActorLocation::Sim3dSetup() { Super::Sim3dSetup(); if (Tags.Num() != 0) { FString tagName = Tags.Top().ToString(); FString MessageReaderTag = tagName; MessageReaderTag.Append(TEXT("SimulinkMessage_OUT")); // a message from Simulink model MessageReader = StartSimulation3DMessageReader (TCHAR_TO_ANSI(*MessageReaderTag), MAX_MESSAGE_SIZE); FString MessageWriterTag = tagName; MessageWriterTag.Append(TEXT("SimulinkMessage_IN")); // a message to Simulink model MessageWriter = StartSimulation3DMessageWriter (TCHAR_TO_ANSI(*MessageWriterTag) ), MAX_MESSAGE_SIZE); } }
R2020b で導入
ASim3dActor
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office