Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/UScalarPositionArrayObservation
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;AgentId&61;"&45;1"&41;&41;
void SetScalarPositionArrayObservationWithAxis
&40;
const int32 AgentId,
const TArray< FVector > & Positions,
const FVector RelativePosition,
const FVector Axis
&41;
Remarks
Sets the data for this observation. The relative position can be used to make this observation relative to the agent's perspective, e.g. by passing the agent's position. Call during ULearningAgentsInteractor::SetObservations event.
Parameters
| Name | Description |
|---|---|
| AgentId | The agent id this data corresponds to. |
| Positions | The positions currently being observed. |
| RelativePosition | The vector Positions will be offset from. |
| Axis | The axis along which to encode the positions |