Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
Description
Specifies a new proportion along ray observation. This observes how far a you can travel along a ray before collision. Rays that can travel the full distance are encoded as zero, while rays that collide instantly are encoded as one.
| Name | SpecifyProportionAlongRayObservation |
| 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 SpecifyProportionAlongRayObservation
(
ULearningAgentsObservationSchema * Schema,
const FName Tag
)
The newly created observation schema element.
Parameters
| Name | Remarks |
|---|---|
| Schema | The Observation Schema |
| Tag | The tag of this new observation. Used during observation object validation and debugging. |