Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULocalDirectionalVelocityReward
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRewards.h |
| Include | #include "LearningAgentsRewards.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsRewards.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents", Meta&61;&40;DefaultToSelf&61;"InAgentTrainer"&41;&41;
static ULocalDirectionalVelocityReward &42; AddLocalDirectionalVelocityReward
&40;
ULearningAgentsTrainer &42; InAgentTrainer,
const FName Name,
const float Weight,
const float Scale,
const FVector Axis
&41;
Remarks
Adds a new directional velocity reward to the given trainer. Call during ULearningAgentsTrainer::SetupRewards event. The newly created reward.
Parameters
| Name | Description |
|---|---|
| InAgentTrainer | The trainer to add this reward to. |
| Name | The name of this new reward. Used for debugging. |
| Weight | Multiplier for this reward when being summed up for the total reward. |
| Scale | Used to normalize the data for the reward. |
| Axis | The local direction we want to maximize velocity in. |