/// <summary>
/// Removes the specified node and all of it's child subtree from the octree, but not from the scene graph.
/// </summary>
/// <remarks>
/// This iterates the whole node tree starting from the specified node and removes them from octree partitions,
/// but doesn't remove them from the scene graph.
/// </remarks>
/// <param name="child"></param>
protected void RemoveNodesFromOctree(OctreeNode baseNode)
{
foreach (OctreeNode child in baseNode.Children)
{
baseNode.RemoveNodesFromOctree(child);
}
((OctreeSceneManager)baseNode.Creator).RemoveOctreeNode(baseNode);
}