Default implementation of RaySceneQuery.
Note that becuase we have no scene partitioning, we actually perform a complete scene search even if restricted results are requested; smarter scene manager queries can utilise the paritioning of the scene in order to reduce the number of intersection tests required to fulfil the query
Inheritance: RaySceneQuery
コード例 #1
0
ファイル: SceneManager.cs プロジェクト: mono-soc-2011/axiom
	    /// <summary>
	    ///    Creates a query to return objects found along the ray.
	    /// </summary>
	    /// <param name="ray">Ray to use for the intersection query.</param>
	    /// <param name="mask"></param>
	    /// <returns>A specialized implementation of RaySceneQuery for this scene manager.</returns>
	    public virtual RaySceneQuery CreateRayQuery( Ray ray, uint mask )
		{
			DefaultRaySceneQuery query = new DefaultRaySceneQuery( this );
			query.Ray = ray;
			query.QueryMask = mask;
			return query;
		}