protected virtual Vector3 UpdateTarget ( RichFunnel fn ) {
buffer.Clear ();
/* Current position. We read and write to tr.position as few times as possible since doing so
* is much slower than to read and write from/to a local variable
*/
Vector3 position = tr.position;
bool requiresRepath;
position = fn.Update (position, buffer, 2, out lastCorner, out requiresRepath);
if (requiresRepath && !waitingForPathCalc) {
UpdatePath ();
}
return position;
}