public int registerTargetWaypoint(Vector3 target, float tolerance)
{
scriptPosTarget waypoint = new scriptPosTarget {targetPos = target, tolerance = tolerance};
uint handle = m_scene.SceneGraph.AllocateLocalId();
waypoint.handle = handle;
lock (m_targets)
m_targets.Add(handle, waypoint);
AddGroupTarget(this);
return (int) handle;
}