How does GenericGoToAction know where to go?
Closed this issue · 1 comments
Hi,
I've been trying to understand how to implement my own actions, mostly moving and picking up things, but I don't understand how GenericGoToAction knows where to go.
Both "objectivePosition" and "isAtPosition" are only set from within the action and "startPosition" is only set from PositionSensor which is on the same object. Also, why is "startPosition" updated with the agent's current position, seems like a confusing name when used like that.
I would greatly appreciate any insight of how this example works so use this asset for real 💯
Ah, I realized now that the goal wants "isAtPosition" to be at the position required by an action like GatherResourceAction and to satisfy that, it uses GenericGoToAction which retrieves the goal state's 'isAtPosition' and uses that as it's 'objectivePosition'.