Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/UPlanarDirectionArrayObservation
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsObservations.h |
| Include | #include "LearningAgentsObservations.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsObservations.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents", Meta&61;&40;DefaultToSelf&61;"InInteractor"&41;&41;
static UPlanarDirectionArrayObservation &42; AddPlanarDirectionArrayObservation
&40;
ULearningAgentsInteractor &42; InInteractor,
const FName Name,
const int32 DirectionNum,
const float Scale,
const FVector Axis0,
const FVector Axis1
&41;
Remarks
Adds a new planar direction observation to the given agent interactor. The axis parameters define the plane. Call during ULearningAgentsInteractor::SetupObservations event. The newly created observation.
Parameters
| Name | Description |
|---|---|
| InInteractor | The agent interactor to add this observation to. |
| Name | The name of this new observation. Used for debugging. |
| DirectionNum | The number of directions in the array |
| Scale | Used to normalize the data for the observation. |
| Axis0 | The forward axis of the plane. |
| Axis1 | The right axis of the plane. |