mirror of
https://github.com/opensim/opensim.git
synced 2026-07-28 11:55:43 +08:00
added suport funtions for ubitODE raycastFiltered
This commit is contained in:
@@ -1891,6 +1891,19 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
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>
|
||||
/// Gets a new rez location based on the raycast and the size of the object that is being rezzed.
|
||||
|
||||
Reference in New Issue
Block a user