Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/UPositionArraySimilarityReward
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRewards.h |
| Include | #include "LearningAgentsRewards.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsRewards.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents", Meta&61;&40;AgentId&61;"&45;1"&41;&41;
void SetPositionArraySimilarityReward
&40;
const int32 AgentId,
const TArray< FVector > & Positions0,
const TArray< FVector > & Positions1,
const FVector RelativePosition0,
const FVector RelativePosition1,
const FRotator RelativeRotation0,
const FRotator RelativeRotation1
&41;
Remarks
Sets the data for this reward. Call during ULearningAgentsTrainer::SetRewards event.
Parameters
| Name | Description |
|---|---|
| AgentId | The agent id this data corresponds to. |
| Positions0 | The current positions. |
| Positions1 | The goal positions. |
| RelativePosition0 | The vector Positions0 will be offset from. |
| RelativePosition1 | The vector Positions1 will be offset from. |
| RelativeRotation0 | The frame of reference rotation for Positions0. |
| RelativeRotation1 | The frame of reference rotation for Positions1. |