Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- ULearningAgentsRewards
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRewards.h |
| Include | #include "LearningAgentsRewards.h" |
Syntax
UCLASS (BlueprintType)
class ULearningAgentsRewards : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | MakeReward
(
const float RewardValue, |
Make a reward from a float value. | |
| float | MakeRewardFromAngleSimilarity
(
const float AngleA, |
Make a reward based on how similar two angles are. Angles should be given in degrees. | |
| float | MakeRewardFromDirectionSimilarity
(
const FVector DirectionA, |
Make a reward based on how similar two directions are. | |
| float | MakeRewardFromLocationDifference
(
const FVector LocationA, |
Make a reward based on the distance between two locations. | |
| float | MakeRewardFromLocationSimilarity
(
const FVector LocationA, |
Make a reward based on how similar two locations are. | |
| float | MakeRewardFromRotationSimilarity
(
const FRotator RotationA, |
Make a reward based on how similar two rotations are. | |
| float | MakeRewardFromRotationSimilarityAsQuats
(
const FQuat RotationA, |
Make a reward based on how similar two rotations are represented as quaternions. | |
| float | MakeRewardFromVelocityAlongSpline
(
const USplineComponent* SplineComponent, |
Make a reward based on the velocity an object is moving along a spline. | |
| float | MakeRewardOnCondition
(
const bool bCondition, |
Make a reward which is equal to RewardScale when bCondition is true, otherwise returns zero. | |
| float | MakeRewardOnLocationDifferenceAboveThreshold
(
const FVector LocationA, |
Make a reward when the distance between two locations is above a threshold, otherwise returns zero. | |
| float | MakeRewardOnLocationDifferenceBelowThreshold
(
const FVector LocationA, |
Make a reward when the distance between two locations is below a threshold, otherwise returns zero. |