Learning Agents 5.4 Questions

Normally for this sort of collision, we have the agent implement the Event ActorBeginOverlap and Event ActorEndOverlap such that it keeps track of the collision (make whatever variable public or have a public function to get it):

Then in the Completion, have it check if the collision has occurred:

Similar in the reward:

Then the Reset merely resets the state. It doesn’t do any conditional logic. The reset is called automatically when a completion has triggered.

Hopefully that clarifies what to do, but let me know either way.

1 Like