Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsReward
- UPlanarPositionDifferencePenalty
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRewards.h |
| Include | #include "LearningAgentsRewards.h" |
Syntax
UCLASS&40;&41;
class UPlanarPositionDifferencePenalty : public ULearningAgentsReward
Remarks
A penalty for being far from a goal position in a plane.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< UE::Learning::FPlanarPositionDifferencePenalty > | RewardObject |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UPlanarPositionDifferencePenalty * | AddPlanarPositionDifferencePenalty
(
ULearningAgentsTrainer* InAgentTrainer, |
Adds a new planar difference penalty to the given trainer. | |
| void | SetPlanarPositionDifferencePenalty
(
const int32 AgentId, |
Sets the data for this penalty. |
Overridden from ULearningAgentsReward
| Type | Name | Description | |
|---|---|---|---|
| void | VisualLog
(
const UE::Learning::FIndexSet Instances |
Describes this reward to the visual logger for debugging purposes. |