added suport funtions for ubitODE raycastFiltered

avinationmerge
UbitUmarov 2012-04-16 16:33:57 +01:00
parent 86a2169d73
commit 25a2f97bc2
1 changed files with 13 additions and 0 deletions

View File

@ -1891,6 +1891,19 @@ namespace OpenSim.Region.Framework.Scenes
EventManager.TriggerPrimsLoaded(this); EventManager.TriggerPrimsLoaded(this);
} }
public bool SuportsRayCastFiltered()
{
if (PhysicsScene == null)
return false;
return PhysicsScene.SuportsRaycastWorldFiltered();
}
public object RayCastFiltered(Vector3 position, Vector3 direction, float length, int Count, RayFilterFlags filter)
{
if (PhysicsScene == null)
return null;
return PhysicsScene.RaycastWorld(position, direction, length, Count,filter);
}
/// <summary> /// <summary>
/// Gets a new rez location based on the raycast and the size of the object that is being rezzed. /// Gets a new rez location based on the raycast and the size of the object that is being rezzed.