Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
Description
Specifies a new rotation observation. Allows an agent to observe the rotation of some entity. Rotations are encoded as two columns of the rotation matrix to ensure there is no discontinuity in the encoding.
| Name | SpecifyRotationObservation |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsObservations.h |
| Include Path | #include "LearningAgentsObservations.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsObservations.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents", Meta=(AdvancedDisplay=1))
static FLearningAgentsObservationSchemaElement SpecifyRotationObservation
(
ULearningAgentsObservationSchema * Schema,
const bool bActive,
const FName Tag
)
The newly created observation schema element.
Parameters
| Name | Remarks |
|---|---|
| Schema | The Observation Schema |
| bActive | Whether to enable the observation as a valid network input. If set to inactive, this observation will be considered an empty observation. This flag allows easy toggles of specified observation. |
| Tag | The tag of this new observation. Used during observation object validation and debugging. |