Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsActions
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsActions.h |
| Include | #include "LearningAgentsActions.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsActions.cpp |
UFUNCTION (BlueprintPure=false, Category="LearningAgents",
Meta=(AdvancedDisplay=4, ReturnDisplayName="Success", DefaultToSelf="VisualLoggerListener"))
static bool GetRotationAction
(
FRotator & OutRotation,
const ULearningAgentsActionObject * Object,
const FLearningAgentsActionObjectElement Element,
const FRotator RelativeRotation,
const FName Tag,
const bool bVisualLoggerEnabled,
ULearningAgentsManagerListener * VisualLoggerListener,
const int32 VisualLoggerAgentId,
const FVector VisualLoggerRotationLocation,
const FVector VisualLoggerLocation,
const FLinearColor VisualLoggerColor
)
Remarks
Get the value for a rotation action. true if the provided Element is the correct type, otherwise false.
Parameters
| Name | Description |
|---|---|
| OutRotation | The output rotation value. |
| Object | The Action Object |
| Element | The Action Object Element |
| RelativeRotation | The relative rotation to transform the rotation by. |
| Tag | The tag of the corresponding action. 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 action. This must be set to use logging. |
| VisualLoggerAgentId | The agent id associated with this action. |
| VisualLoggerRotationLocation | A location for the visual logger to display the rotation in the world. |
| VisualLoggerLocation | A location for the visual logger information in the world. |
| VisualLoggerColor | The color for the visual logger display. |