Exit the ancestry of the current position Exiting works as following:
O / \ A X / \ B C / \ D E
A position under the empty E
A being the node which must be exited The position after A will be the result.
A position before C
A being the node which must be exited The exit will fail, as the position gets trapped between B and C.
A position between under the empty E
C being the node which must be exited The position after C will be the result, as it may be reached.
When exiting a tree having just one branch, i.e. none of the nodes have siblings, a bias is taken to before. As soon as a choice has to be made, the direction is chosen. Example:
A / | B C | D
When exiting from D, exiting C, brings us before C When exiting from D, exiting A, brings us after A, since no direction had to be chosen before
Refer to primitives for more information on how to include this primitive.
The position to start exiting from
The blueprint to perform the exit in
The node which must be exited for this to be successful
The format to use for detecting detached nodes
The position at where the exit brought us, before or after the nodeToExit
The success of the exit.