Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
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 (BlueprintPure, Category="LearningAgents",
Meta=(AdvancedDisplay=5, DefaultToSelf="VisualLoggerListener"))
static FLearningAgentsObservationObjectElement MakeProportionAlongRayObservation
(
ULearningAgentsObservationObject * Object,
const FVector RayStart,
const FVector RayEnd,
const FTransform RayTransform,
const ECollisionChannel CollisionChannel,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener * VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
Remarks
Make a new proportion along ray observation. The newly created observation object element.
Parameters
| Name | Description |
|---|---|
| Object | The Observation Object |
| RayStart | The local ray start location. |
| RayEnd | The local ray end location. |
| RayTransform | The transform to use to transform the local ray starts and ends into the world space. |
| CollisionChannel | The collision channel to collide against. |
| Tag | The tag of the corresponding observation. Must match the tag given during Specify. |
| bVisualLoggerEnabled | When true, debug data will be sent to the visual logger. |
| VisualLoggerListener | The listener object which is making this observation. This must be set to use logging. |
| VisualLoggerAgentId | The agent id associated with this observation. |
| VisualLoggerLocation | A location for the visual logger information in the world. |
| VisualLoggerColor | The color for the visual logger display. |