Add the Avination physics raycast glue so Core Physics can implement raycast

This commit is contained in:
Melanie
2013-01-23 21:03:24 +00:00
parent 6a2b673fca
commit c1795ed399
3 changed files with 130 additions and 14 deletions

View File

@@ -1983,6 +1983,19 @@ namespace OpenSim.Region.Framework.Scenes
EventManager.TriggerPrimsLoaded(this);
}
public bool SupportsRayCastFiltered()
{
if (PhysicsScene == null)
return false;
return PhysicsScene.SupportsRaycastWorldFiltered();
}
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>
/// Gets a new rez location based on the raycast and the size of the object that is being rezzed.