Default implementation of a SphereRegionSceneQuery.
Inheritance: SphereRegionSceneQuery
Ejemplo n.º 1
0
		/// <summary>
		///		Creates a <see cref="SphereRegionSceneQuery"/> for this scene manager.
		/// </summary>
		/// <remarks>
		///		This method creates a new instance of a query object for this scene manager,
		///		for querying for objects within a spherical region.
		/// </remarks>
		/// <param name="sphere">Sphere to use for the region query.</param>
		/// <param name="mask">Custom user defined flags to use for the query.</param>
		/// <returns>A specialized implementation of SphereRegionSceneQuery for this scene manager.</returns>
		public virtual SphereRegionSceneQuery CreateSphereRegionQuery( Sphere sphere, uint mask )
		{
			DefaultSphereRegionSceneQuery query = new DefaultSphereRegionSceneQuery( this );
			query.Sphere = sphere;
			query.QueryMask = mask;

			return query;
		}