Navigation
BlueprintAPI > BlueprintAPI/LearningAgents
Make a reward based on the distance between two locations. Gives a larger reward the further the distance between the locations.
Target is Learning Agents Rewards
Inputs
| Type | Name | Description |
|---|---|---|
| vector | Location A | The first location. |
| vector | Location B | The second location. |
| real | Location Scale | The expected scale for the distance between locations. |
| real | Reward Scale | The scale of the reward. Use a negative scale to create a penalty. |
| name | Tag | The tag for the reward. Used for debugging. |
| boolean | Visual Logger Enabled | When true, debug data will be sent to the visual logger. |
| object | Visual Logger Listener | The listener object which is making this reward. This must be set to use logging. |
| integer | Visual Logger Agent Id | The agent id associated with this reward. |
| vector | Visual Logger Location | A location for the visual logger information in the world. |
| linearcolor | Visual Logger Color | The color for the visual logger display. |
Outputs
| Type | Name | Description |
|---|---|---|
| real | Return Value | The resulting reward value. |