Axiom.SceneManagers.Bsp.BspLevel.FindLeaf C# (CSharp) Method

FindLeaf() public method

Walks the entire BSP tree and returns the leaf which contains the given point.
public FindLeaf ( Vector3 point ) : Axiom.SceneManagers.Bsp.BspNode
point Vector3
return Axiom.SceneManagers.Bsp.BspNode
		public BspNode FindLeaf( Vector3 point )
		{
			BspNode node = nodes[ 0 ];

			while ( !node.IsLeaf )
				node = node.GetNextNode( point );

			return node;
		}