Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/UPlanarPositionDifferenceComplet-
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsCompletions.h |
| Include | #include "LearningAgentsCompletions.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsCompletions.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents", Meta&61;&40;DefaultToSelf&61;"InAgentTrainer"&41;&41;
static UPlanarPositionDifferenceCompletion &42; AddPlanarPositionDifferenceCompletion
&40;
ULearningAgentsTrainer &42; InAgentTrainer,
const FName Name,
const float Threshold,
const ELearningAgentsCompletion InCompletionMode,
const FVector Axis0,
const FVector Axis1
&41;
Remarks
Adds a new planar position difference completion to the given trainer. The axis parameters define the plane. Call during ULearningAgentsTrainer::SetupCompletions event. The newly created completion.
Parameters
| Name | Description |
|---|---|
| InAgentTrainer | The trainer to add this completion to. |
| Name | The name of this new completion. Used for debugging. |
| Threshold | If the distance becomes greater than this threshold, then the episode will complete. |
| InCompletionMode | The completion mode. |
| Axis0 | The forward axis of the plane. |
| Axis1 | The right axis of the plane. |