Detaches the previously seized and attached resources from the agent. The detached resource units will still be possessed by the agent but will not accompany it when the agent moves.
The detach operation takes zero time.
If the resources are released they are detached automatically, and you do not need to use this object in that case.