Navigation
BlueprintAPI > BlueprintAPI/LearningAgents
Make a reward when the distance between two locations is below a threshold, otherwise returns zero.
Target is Learning Agents Rewards
Inputs
| Type | Name | Description |
|---|---|---|
| vector | Location A | The first location. |
| vector | Location B | The second location. |
| real | Distance Threshold | The distance threshold. |
| 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. |